Skip to content

Commit be724e2

Browse files
Merge pull request #78 from shintaro-iwasaki/FixNVPTXTestSupport
fix omptarget-nvptx tests
2 parents 5d75406 + 804c906 commit be724e2

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

libomptarget/deviceRTLs/nvptx/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ if(LIBOMPTARGET_DEP_CUDA_FOUND)
199199
# Copy library to destination.
200200
add_custom_command(TARGET bolt-omptarget-nvptx-${sm}-bc POST_BUILD
201201
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/libomptarget-nvptx-sm_${sm}.bc
202-
$<TARGET_FILE_DIR:omptarget-nvptx>)
202+
$<TARGET_FILE_DIR:bolt-omptarget-nvptx>)
203203

204204
# Install bitcode library under the lib destination folder.
205205
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libomptarget-nvptx-sm_${sm}.bc DESTINATION "${OPENMP_INSTALL_LIBDIR}")

libomptarget/deviceRTLs/nvptx/test/lit.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ config.test_flags = config.test_flags + " " + config.test_extra_flags
4545
prepend_library_path('LD_LIBRARY_PATH', config.library_dir, ":")
4646
prepend_library_path('LD_LIBRARY_PATH', config.omp_host_rtl_directory, ":")
4747

48+
# Setup flags for BOLT. If BOLT is not used, they are ignored.
49+
# Some tasking tests require larger stack size.
50+
config.environment['ABT_THREAD_STACKSIZE'] = "262144"
51+
# Sleep alleviates oversubscription overheads when -j is specified.
52+
config.environment['KMP_ABT_SCHED_SLEEP'] = "1"
53+
4854
# Forbid fallback to host.
4955
config.environment["OMP_TARGET_OFFLOAD"] = "MANDATORY"
5056

libomptarget/test/lit.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ else: # Unices
6464
append_dynamic_library_path('LD_LIBRARY_PATH', \
6565
config.omp_host_rtl_directory, ":")
6666

67+
# Setup flags for BOLT. If BOLT is not used, they are ignored.
68+
# Some tasking tests require larger stack size.
69+
config.environment['ABT_THREAD_STACKSIZE'] = "262144"
70+
# Sleep alleviates oversubscription overheads when -j is specified.
71+
config.environment['KMP_ABT_SCHED_SLEEP'] = "1"
72+
6773
# substitutions
6874
# - for targets that exist in the system create the actual command.
6975
# - for valid targets that do not exist in the system, return false, so that the

tools/archer/tests/lit.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ if config.has_tsan == True:
8989
if 'INTEL_LICENSE_FILE' in os.environ:
9090
config.environment['INTEL_LICENSE_FILE'] = os.environ['INTEL_LICENSE_FILE']
9191

92+
# Setup flags for BOLT. If BOLT is not used, they are ignored.
93+
# Some tasking tests require larger stack size.
94+
config.environment['ABT_THREAD_STACKSIZE'] = "262144"
95+
# Sleep alleviates oversubscription overheads when -j is specified.
96+
config.environment['KMP_ABT_SCHED_SLEEP'] = "1"
97+
9298
# Race Tests
9399
config.substitutions.append(("%libarcher-compile-and-run-race", \
94100
"%libarcher-compile && %libarcher-run-race"))

0 commit comments

Comments
 (0)