4 #include "alsutils/config.hpp" 5 #ifdef ALSVINN_HAVE_CUDA 6 #include <cuda_runtime.h> 11 #ifdef ALSVINN_HAVE_CUDA 14 template<
class ...T> CudaTimer(cudaStream_t stream, T... names) :
18 std::chrono::high_resolution_clock::time_point()) {
23 ~CudaTimer() noexcept(
false);
29 void addStartCallback();
34 std::chrono::high_resolution_clock::time_point* start;
40 #ifdef ALSVINN_HAVE_CUDA 41 #ifdef ALSVINN_USE_CUDA_TIMERS 42 #define ALSVINN_TIME_CUDA_BLOCK(STREAM, ...) ::alsutils::timer::CudaTimer ALSVINN_MAKE_TIMER_VARIABLE_NAME(__VA_ARGS__) (STREAM, ALSVINN_MAKE_TIMER_STRINGS(__VA_ARGS__)) 44 #define ALSVINN_TIME_CUDA_BLOCK(STREAM, ...) 47 #define ALSVINN_TIME_CUDA_BLOCK(STREAM, ...) Various utilities for mpi and cuda.
Definition: Factory.hpp:3
Definition: TimerData.hpp:10
static TimerDatabase & getInstance()
Definition: TimerDatabase.cpp:7