Skip to content

Commit 85184b4

Browse files
[OpenMP] Fix libomptarget build issue (llvm#74067)
Libomptarget cannot be build because of the recent refactoring introduced in patch 148dec9 : [OpenMP][NFC] Separate Envar (environment variable) handling (llvm#73994) That patch moved handling of environment variables from libomptarget library. That's why we don't need usage of "llvm::omp::target" namespace if we handle environment variables.
1 parent a2e8207 commit 85184b4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

openmp/libomptarget/src/interface.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ EXTERN void __tgt_target_nowait_query(void **AsyncHandle) {
454454
// for the device operations (work/spin wait on them) or block until they are
455455
// completed (use device side blocking mechanism). This allows the runtime to
456456
// adapt itself when there are a lot of long-running target regions in-flight.
457-
using namespace llvm::omp::target;
458457
static thread_local utils::ExponentialBackoff QueryCounter(
459458
Int64Envar("OMPTARGET_QUERY_COUNT_MAX", 10),
460459
Int64Envar("OMPTARGET_QUERY_COUNT_THRESHOLD", 5),

0 commit comments

Comments
 (0)