[Trilinos-Users] Issues with Trilinos-Kokkos withCUDA

Ashesh Chattopadhyay ashesh6810 at gmail.com
Tue Jan 17 01:00:42 EST 2017


Dear All,

I have installed Trilinos with CUDA support correctly(Pointed the
OMPI_CXX_COMPILER to nvcc wrapper etc) and tried to run an example kokkos
code from the repository on GPU. I was able to compile it correctly by
passing the nvcc flags *-expt-extended-lambda -DKOKKOS_CUDA_USE_LAMBDA *but
the code shows me a run time error:








*Kokkos::Cuda::initialize WARNING: running kernels compiled for compute
capability 0.-3 on device with compute capability 2.1 , this will likely
reduce potential performance.terminate called after throwing an instance of
'std::runtime_error'  what():  cudaFuncSetCacheConfig(
cuda_parallel_launch_local_memory< DriverType > , cudaFuncCachePreferL1 )
error( cudaErrorInvalidDeviceFunction): invalid device function
/home/ashesh/Ashesh/Trilinos-Kokkos_GPU/Trilinos/install/include/Cuda/Kokkos_CudaExec.hpp:286Traceback
functionality not availableAborted (core dumped)*
I am attaching the *code* that I am running from the repo and also the
*script* I use to compile the code with CUDA. Please help me identify the
issue.

Thanks
Ashesh

-- 
Research Assistant, Multi-Scale Multi-Physics Computation Lab
University of Texas at El Paso
Texas, El Paso, USA
(+1) 915-355-5013
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20170116/2b953383/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex2.cpp
Type: text/x-c++src
Size: 4428 bytes
Desc: not available
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20170116/2b953383/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compile_GPU.sh
Type: application/x-sh
Size: 1423 bytes
Desc: not available
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20170116/2b953383/attachment.sh>


More information about the Trilinos-Users mailing list