@@ -38,13 +38,13 @@ void eigenvectors( benchmark::State & state )
3838INDEX_TYPE const SERIAL_SIZE_2x2 = (2 << 22 ) - 87 ;
3939INDEX_TYPE const SERIAL_SIZE_3x3 = (2 << 19 ) - 87 ;
4040
41- #if defined(USE_OPENMP )
41+ #if defined(LVARRAY_USE_OPENMP )
4242INDEX_TYPE const OMP_SIZE_2x2 = (2 << 24 ) - 87 ;
4343INDEX_TYPE const OMP_SIZE_3x3 = (2 << 23 ) - 87 ;
4444#endif
4545
4646// The non Array benchmarks could be run without chai, but then what's the point.
47- #if defined(USE_CUDA ) && defined(USE_CHAI )
47+ #if defined(LVARRAY_USE_CUDA ) && defined(LVARRAY_USE_CHAI )
4848constexpr INDEX_TYPE CUDA_SIZE_2x2 = (2 << 24 ) - 87 ;
4949constexpr INDEX_TYPE CUDA_SIZE_3x3 = (2 << 24 ) - 87 ;
5050#endif
@@ -67,13 +67,13 @@ void registerBenchmarks()
6767 , std::make_tuple ( SERIAL_SIZE_2x2, std::integral_constant< int , 2 > {}, RAJA::PERM_JI {}, RAJA::PERM_KJI {}, serialPolicy {} )
6868 , std::make_tuple ( SERIAL_SIZE_3x3, std::integral_constant< int , 3 > {}, RAJA::PERM_IJ {}, RAJA::PERM_IJK {}, serialPolicy {} )
6969 , std::make_tuple ( SERIAL_SIZE_3x3, std::integral_constant< int , 3 > {}, RAJA::PERM_JI {}, RAJA::PERM_KJI {}, serialPolicy {} )
70- #if defined(USE_OPENMP )
70+ #if defined(LVARRAY_USE_OPENMP )
7171 , std::make_tuple ( OMP_SIZE_2x2, std::integral_constant< int , 2 > {}, RAJA::PERM_IJ {}, RAJA::PERM_IJK {}, parallelHostPolicy {} )
7272 , std::make_tuple ( OMP_SIZE_2x2, std::integral_constant< int , 2 > {}, RAJA::PERM_JI {}, RAJA::PERM_KJI {}, parallelHostPolicy {} )
7373 , std::make_tuple ( OMP_SIZE_3x3, std::integral_constant< int , 3 > {}, RAJA::PERM_IJ {}, RAJA::PERM_IJK {}, parallelHostPolicy {} )
7474 , std::make_tuple ( OMP_SIZE_3x3, std::integral_constant< int , 3 > {}, RAJA::PERM_JI {}, RAJA::PERM_KJI {}, parallelHostPolicy {} )
7575 #endif
76- #if defined(USE_CUDA ) && defined(USE_CHAI )
76+ #if defined(LVARRAY_USE_CUDA ) && defined(LVARRAY_USE_CHAI )
7777 , std::make_tuple ( CUDA_SIZE_2x2, std::integral_constant< int , 2 > {}, RAJA::PERM_IJ {}, RAJA::PERM_IJK {}, parallelDevicePolicy< THREADS_PER_BLOCK > {} )
7878 , std::make_tuple ( CUDA_SIZE_2x2, std::integral_constant< int , 2 > {}, RAJA::PERM_JI {}, RAJA::PERM_KJI {}, parallelDevicePolicy< THREADS_PER_BLOCK > {} )
7979 , std::make_tuple ( CUDA_SIZE_3x3, std::integral_constant< int , 3 > {}, RAJA::PERM_IJ {}, RAJA::PERM_IJK {}, parallelDevicePolicy< THREADS_PER_BLOCK > {} )
@@ -97,12 +97,12 @@ int main( int argc, char * * argv )
9797 LVARRAY_LOG ( " Serial number of 2x2 matrices = " << LvArray::benchmarking::SERIAL_SIZE_2x2 );
9898 LVARRAY_LOG ( " Serial number of 3x3 matrices = " << LvArray::benchmarking::SERIAL_SIZE_3x3 );
9999
100- #if defined(USE_OPENMP )
100+ #if defined(LVARRAY_USE_OPENMP )
101101 LVARRAY_LOG ( " OMP number of 2x2 matrices = " << LvArray::benchmarking::OMP_SIZE_2x2 );
102102 LVARRAY_LOG ( " OMP number of 3x3 matrices = " << LvArray::benchmarking::OMP_SIZE_3x3 );
103103#endif
104104
105- #if defined(USE_CUDA ) && defined(USE_CHAI )
105+ #if defined(LVARRAY_USE_CUDA ) && defined(LVARRAY_USE_CHAI )
106106 LVARRAY_LOG ( " CUDA number of 2x2 matrices = " << LvArray::benchmarking::CUDA_SIZE_2x2 );
107107 LVARRAY_LOG ( " CUDA number of 3x3 matrices = " << LvArray::benchmarking::CUDA_SIZE_3x3 );
108108#endif
0 commit comments