b99b153030
* Source code restructuring
* Critical trace updates following restructuring
* thread_sampler, timestamps
- thread_sampler
- CPU frequency managed via thread_sampler
- rocm-smi managed via thread_sampler
- Use consistent timestamps for perfetto
- removed hsa_timer_t in favor of wall_clock::record()
- disable KokkosP by default
- re-enable critical-trace testing
* cmake-format
* Fix for defines.hpp.in
* Remove OMNITRACE_ROCM_SMI_FREQ
- thread_sampler freq is set via OMNITRACE_SAMPLING_FREQ w/ max of 1000
* Increase CI Install Dyninst timeout
* Debug macros + omnitrace_init_tooling + config
- new debug macros
- extern "C" omnitrace_init_tooling
- guard get_rocm_smi_devices
* Miscellaneous tweaks
- tweak to transpose
- critical_trace::Device::ANY
- perfetto "critical-trace" category
- OMNITRACE_VERBOSE usage
* Disable key and tid data for HIP API calls
- non-kernels are ignored in activity callback
* critical-trace exe updates
- fix perfetto generation
- improved logging
- improved readability
* timemory submodule update
- lulesh example cmake tweaks
[ROCm/rocprofiler-systems commit: b016c8929f]
34 lines
847 B
CMake
34 lines
847 B
CMake
include(Utilities)
|
|
|
|
option(LULESH_USE_CUDA "Enable Kokkos CUDA backend for lulesh" OFF)
|
|
option(LULESH_USE_HIP "Enable Kokkos HIP backend for lulesh" OFF)
|
|
|
|
set(Kokkos_ENABLE_SERIAL
|
|
ON
|
|
CACHE BOOL "Enable Serial")
|
|
|
|
if(LULESH_USE_CUDA)
|
|
set(Kokkos_ENABLE_CUDA
|
|
ON
|
|
CACHE BOOL "Enable CUDA" FORCE)
|
|
set(Kokkos_ENABLE_CUDA_LAMBDA
|
|
ON
|
|
CACHE BOOL "Enable CUDA lambda support" FORCE)
|
|
elseif(LULESH_USE_HIP)
|
|
set(Kokkos_ENABLE_HIP
|
|
ON
|
|
CACHE BOOL "Enable HIP" FORCE)
|
|
else()
|
|
set(Kokkos_ENABLE_OPENMP
|
|
ON
|
|
CACHE BOOL "Enable OpenMP")
|
|
endif()
|
|
|
|
checkout_git_submodule(
|
|
RELATIVE_PATH external/kokkos WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} REPO_URL
|
|
https://github.com/kokkos/kokkos.git REPO_BRANCH develop)
|
|
|
|
set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY ON)
|
|
|
|
add_subdirectory(kokkos)
|