Skip to content

Commit 804c906

Browse files
[BOLT/test] increase the stack size of tasks
The default stack size is too small for some tasking tests. This patch sets a a larger stack size for testing.
1 parent 144f71a commit 804c906

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

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)