Closed thelfer closed 3 years ago
How did you compile Kokkos
? Did you specify cmake -DKokkos_ENABLE_CUDA_LAMBDA=ON
?
@masterleinad Seems like I did not. I only specified -DKokkos_ENABLE_CUDA=ON
. Now it can compile the first exercise, but it fails with error:
./01_Exercise
Total size S = 4194304 N = 4096 M = 1024
terminate called after throwing an instance of 'std::runtime_error'
what(): cudaStreamSynchronize(m_stream) error( cudaErrorIllegalAddress): an illegal memory access was encountered /home/th202608/codes/kokkos/master/src/kokkos/core/src/Cuda/Kokkos_Cuda_Instance.cpp:314
Traceback functionality not available
Abandon
Ok, solution was on slide 51 of the Kokkos lectures.... (replace std::malloc and std::free by Kokkos counterparts)
Dear developpers, I am very new to Kokkos, so I beg you pardon in advance if this issue is a trivial error on my side. I compiled Kokkos with CUDA support and tries to compile the exercies from kokkos-tutorials. They all fail with the same kind of error:
For the sake of completness, I am on Debian stretch, gcc 8.3.0, cuda 11.4, cmake 3.20.3 Thanks for any help.