-
Notifications
You must be signed in to change notification settings - Fork 51
Pr from fork/137 #254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pr from fork/137 #254
Changes from 30 commits
c64db24
2db7cb1
d7ba2ad
940a07e
513455d
e30a1b7
c6e4771
90be795
fc1b920
d681a64
516507d
7914e24
8e08cd5
01d79b7
dc55482
af35eee
130dfb2
b5ad2e4
b1275b7
e89f97d
e7577d1
b19a19f
76aff45
64d5219
0e9a90e
61dae2a
398ba56
c617652
2933af1
1b63fe2
0ce8c63
eb54c42
d8afe7d
29a3873
93faac1
55ed8be
699ff16
2b8b5ce
c256961
85b3d2c
41983b1
074c208
63e1ffd
ced724c
71a9451
dd1bd5c
5dd7d4b
59cc13c
a1e172e
c488212
2098f85
1e3824c
0d3e5be
e2eb0bf
059e4df
4a176b6
a26f65f
0f2709f
8cde548
5beb2b7
9f7a00f
ed0621f
187e7d1
700be35
19ac08a
16b8340
9295555
a40b276
bc0573a
2a761bb
e79cf13
81e29e4
53671b0
a4c12a8
88d98ed
14f0a39
3b2de08
39fde9b
52ac292
a4aec2b
84aedca
248ffd3
8f32df7
763c358
7ec27ce
b73caaa
08ea0f9
052ca63
b8041e7
1950e27
ef58b0c
fffe3e0
4ad948f
ba525df
775701c
b59755e
f5f6a35
f444177
38bc905
ecc8860
0a9bef0
e512b0d
57f50c4
bf45a79
a616fe1
8c118ff
5941881
505cc95
3002f99
10c5480
b19939e
f91cd21
f57e3c7
1cc3f4a
d590132
4800c32
334bd37
2e03612
a353d4f
0171719
7c6f110
9ad36ac
62341ea
1d2e427
93dee34
8985613
dfbdcb9
a742ebe
ef804d4
752f643
ccdfc0e
1ec65b5
d5dbda0
72eb5e9
3ae59ac
22c8f5b
449a705
ed43d87
592c854
dfb6ad3
ca71f90
e8ade72
3b08adc
fc5e6d3
5499c7d
a2708a1
e68710e
a31768e
97edc52
03d2562
49659db
e5bdd6c
401e069
54919cc
b300358
fc2981a
3c6503e
7731dc9
256fc52
70b6cff
e3fc7d7
ed6033a
dbe10a4
aaa3361
cb3742e
42f9619
e5ed98b
5fa11bc
c46858e
09292db
b134ad6
8fd43bd
609549e
6490c18
bd90e75
f010820
6671991
82c0423
5969bf1
e9b1ba0
3993588
b2ec163
aaba7f5
bb52164
6b03dac
e4ca868
06ce8bc
74a4f6e
f2dd795
489c9a5
29dbcdb
b826e28
c3a88ff
cb65f40
7a1f7b9
bd0d585
39e699d
7306808
2eac54f
b7fbc8c
110d578
b29d567
edaa2e2
202635e
548b42a
b831e47
9ed8761
eb96294
203e9ba
5c04627
70371c4
aa34389
dc9ca71
835a7cb
ddc0a04
db6db7b
1954dd8
6d2e1fd
c5bc688
18500fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| *.pyc | ||
| *.o | ||
| *.exe | ||
| *.swp | ||
| *.swo | ||
| build*/ | ||
| install*/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -120,6 +120,28 @@ if ((ENABLE_HIP) AND (NOT ENABLE_KOKKOS)) | |
| list(APPEND RAJA_PERFSUITE_DEPENDS blt::hip_runtime) | ||
| endif() | ||
|
|
||
| # | ||
| # Are we using Caliper | ||
| # | ||
| set(ENABLE_CALIPER off CACHE BOOL "") | ||
|
||
| set(RAJAPERF_USE_CALIPER off) | ||
|
||
| if (ENABLE_CALIPER) | ||
| find_package(caliper REQUIRED) | ||
| list(APPEND RAJA_PERFSUITE_DEPENDS caliper) | ||
| set(RAJAPERF_USE_CALIPER on) | ||
| add_definitions(-DRAJAPERF_USE_CALIPER) | ||
| message(STATUS "Using Caliper") | ||
| find_package(adiak REQUIRED) | ||
| # use ${adiak_LIBRARIES} since version could have adiak vs adiak::adiak export | ||
| list(APPEND RAJA_PERFSUITE_DEPENDS ${adiak_LIBRARIES}) | ||
| message(STATUS "Using Adiak") | ||
| if (ENABLE_CUDA) | ||
| # Adiak will propagate -pthread from spectrum mpi from a spack install of Caliper with +mpi; and needs to be handled even if RAJAPerf is non MPI program | ||
| # We should delegate to BLT to handle unguarded -pthread from any dependencies, but currently BLT doesn't | ||
| set_target_properties(adiak PROPERTIES INTERFACE_COMPILE_OPTIONS "$<$<NOT:$<COMPILE_LANGUAGE:CUDA>>:-pthread>;$<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=-pthread>") | ||
| endif () | ||
| endif () | ||
|
|
||
| set(RAJAPERF_BUILD_SYSTYPE $ENV{SYS_TYPE}) | ||
| set(RAJAPERF_BUILD_HOST $ENV{HOSTNAME}) | ||
|
|
||
|
|
@@ -135,7 +157,7 @@ if (ENABLE_CUDA) | |
| set(RAJAPERF_COMPILER "${CUDA_NVCC_EXECUTABLE}") | ||
| list(APPEND RAJAPERF_COMPILER ${CMAKE_CXX_COMPILER}) | ||
| set(RAJAPERF_COMPILER_OPTIONS "${CUDA_NVCC_FLAGS}") | ||
| elseif (ENABLE_HIP) | ||
| elseif (ENABLE_HIP) | ||
rhornung67 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| set(RAJAPERF_COMPILER "${HIP_HIPCC_EXECUTABLE}") | ||
| list(APPEND RAJAPERF_COMPILER ${CMAKE_CXX_COMPILER}) | ||
| set(RAJAPERF_COMPILER_OPTIONS "${HIP_HIPCC_FLAGS}") | ||
|
|
@@ -147,7 +169,7 @@ else() | |
| endif() | ||
|
|
||
| configure_file(${CMAKE_SOURCE_DIR}/src/rajaperf_config.hpp.in | ||
| ${CMAKE_CURRENT_BINARY_DIR}/include/rajaperf_config.hpp) | ||
| ${CMAKE_CURRENT_BINARY_DIR}/include/rajaperf_config.hpp) | ||
|
|
||
| include_directories($<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include>) | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| ############################################################################### | ||
| # Copyright (c) 2017-20, Lawrence Livermore National Security, LLC | ||
| # and RAJA Performance Suite project contributors. | ||
| # See the RAJAPerf/COPYRIGHT file for details. | ||
| # | ||
| # SPDX-License-Identifier: (BSD-3-Clause) | ||
| ################################################################################# | ||
|
|
||
| BUILD_SUFFIX=lc_blueos-nvcc10-caliper-gcc8.3.1 | ||
| RAJA_HOSTCONFIG=../tpl/RAJA/host-configs/lc-builds/blueos/nvcc_gcc_X.cmake | ||
|
|
||
| rm -rf build_${BUILD_SUFFIX} >/dev/null | ||
| mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} | ||
|
|
||
| module load cmake/3.14.5 | ||
| module load caliper-2.5.0-gcc-8.3.1-cu3vy3k | ||
|
|
||
| CALIPER_PREFIX=/usr/WS2/holger/spack/opt/spack/linux-rhel7-power9le/gcc-8.3.1/caliper-2.5.0-cu3vy3kjwjerpdm6xis2kauhz4s6wto2/ | ||
|
||
|
|
||
| ADIAK_PREFIX=/usr/WS2/holger/spack/opt/spack/linux-rhel7-power9le/gcc-8.3.1/adiak-0.2.1-hsv444o7ofb6s2znkvvnh6hcmr774g73/ | ||
|
|
||
| cmake \ | ||
| -DCMAKE_BUILD_TYPE=Release \ | ||
| -DCMAKE_CXX_COMPILER=/usr/tce/packages/gcc/gcc-8.3.1/bin/g++ \ | ||
| -C ${RAJA_HOSTCONFIG} \ | ||
| -DCMAKE_PREFIX_PATH="${CALIPER_PREFIX}/share/cmake/caliper;${ADIAK_PREFIX}/lib/cmake/adiak" \ | ||
| -DENABLE_OPENMP=On \ | ||
| -DENABLE_CUDA=On \ | ||
| -DCMAKE_CUDA_FLAGS="-Xcompiler -mno-float128" \ | ||
| -DCUDA_TOOLKIT_ROOT_DIR=/usr/tce/packages/cuda/cuda-10.2.89 \ | ||
| -DCMAKE_CUDA_COMPILER=/usr/tce/packages/cuda/cuda-10.1.243/bin/nvcc \ | ||
| -DCUDA_ARCH=sm_70 \ | ||
| -DENABLE_CALIPER=On \ | ||
| -DCMAKE_INSTALL_PREFIX=../install_${BUILD_SUFFIX} \ | ||
| -DCMAKE_EXPORT_COMPILE_COMMANDS=On \ | ||
| -DCMAKE_VERBOSE_MAKEFILE=On \ | ||
| "$@" \ | ||
| .. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,13 @@ | |
|
|
||
| include_directories(.) | ||
|
|
||
| if(RAJAPERF_USE_CALIPER) | ||
| message(STATUS "Caliper includes : ${caliper_INCLUDE_DIR}") | ||
| message(STATUS "Adiak includes : ${adiak_INCLUDE_DIRS}") | ||
| include_directories(${caliper_INCLUDE_DIR}) | ||
| include_directories(${adiak_INCLUDE_DIRS}) | ||
| endif () | ||
|
|
||
| add_subdirectory(common) | ||
| add_subdirectory(basic) | ||
| add_subdirectory(basic-kokkos) | ||
|
|
@@ -240,6 +247,10 @@ else() | |
| blt_add_executable( | ||
| NAME raja-perf.exe | ||
| SOURCES RAJAPerfSuiteDriver.cpp | ||
| INCLUDES ${PROJECT_BINARY_DIR}/include | ||
| DEPENDS_ON ${RAJA_PERFSUITE_EXECUTABLE_DEPENDS} | ||
| ) | ||
| endif() | ||
|
|
||
| #blt_print_target_properties(TARGET raja-perf.exe) | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be good to add a comment above this line that it is there for debugging if needed. |
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.