@@ -60,7 +60,7 @@ def __get_gtest_settings(repeats_count):
6060 return command
6161
6262 def run_threads (self ):
63- if platform .system () == "Linux" and not os .environ .get ("ASAN_RUN " ):
63+ if platform .system () == "Linux" and not os .environ .get ("PPC_ASAN_RUN " ):
6464 self .__run_exec (f"{ self .valgrind_cmd } { self .work_dir / 'seq_func_tests' } { self .__get_gtest_settings (1 )} " )
6565 self .__run_exec (f"{ self .valgrind_cmd } { self .work_dir / 'stl_func_tests' } { self .__get_gtest_settings (1 )} " )
6666
@@ -70,27 +70,27 @@ def run_threads(self):
7070 self .__run_exec (f"{ self .work_dir / 'omp_func_tests' } { self .__get_gtest_settings (3 )} " )
7171
7272 def run_core (self ):
73- if platform .system () == "Linux" and not os .environ .get ("ASAN_RUN " ):
73+ if platform .system () == "Linux" and not os .environ .get ("PPC_ASAN_RUN " ):
7474 self .__run_exec (f"{ self .valgrind_cmd } { self .work_dir / 'core_func_tests' } { self .__get_gtest_settings (1 )} " )
7575
7676 self .__run_exec (f"{ self .work_dir / 'core_func_tests' } { self .__get_gtest_settings (1 )} " )
7777
7878 def run_processes (self , additional_mpi_args ):
79- proc_count = os .environ .get ("PROC_COUNT " )
80- if proc_count is None :
81- raise EnvironmentError ("Required environment variable 'PROC_COUNT ' is not set." )
79+ PPC_NUM_PROC = os .environ .get ("PPC_NUM_PROC " )
80+ if PPC_NUM_PROC is None :
81+ raise EnvironmentError ("Required environment variable 'PPC_NUM_PROC ' is not set." )
8282
83- mpi_running = f"{ self .mpi_exec } { additional_mpi_args } -np { proc_count } "
84- if not os .environ .get ("ASAN_RUN " ):
83+ mpi_running = f"{ self .mpi_exec } { additional_mpi_args } -np { PPC_NUM_PROC } "
84+ if not os .environ .get ("PPC_ASAN_RUN " ):
8585 self .__run_exec (f"{ mpi_running } { self .work_dir / 'all_func_tests' } { self .__get_gtest_settings (10 )} " )
8686 self .__run_exec (f"{ mpi_running } { self .work_dir / 'mpi_func_tests' } { self .__get_gtest_settings (10 )} " )
8787
8888 def run_performance (self ):
89- if not os .environ .get ("ASAN_RUN " ):
90- proc_count = os .environ .get ("PROC_COUNT " )
91- if proc_count is None :
92- raise EnvironmentError ("Required environment variable 'PROC_COUNT ' is not set." )
93- mpi_running = f"{ self .mpi_exec } -np { proc_count } "
89+ if not os .environ .get ("PPC_ASAN_RUN " ):
90+ PPC_NUM_PROC = os .environ .get ("PPC_NUM_PROC " )
91+ if PPC_NUM_PROC is None :
92+ raise EnvironmentError ("Required environment variable 'PPC_NUM_PROC ' is not set." )
93+ mpi_running = f"{ self .mpi_exec } -np { PPC_NUM_PROC } "
9494 self .__run_exec (f"{ mpi_running } { self .work_dir / 'all_perf_tests' } { self .__get_gtest_settings (1 )} " )
9595 self .__run_exec (f"{ mpi_running } { self .work_dir / 'mpi_perf_tests' } { self .__get_gtest_settings (1 )} " )
9696
0 commit comments