Skip to content
Snippets Groups Projects
Commit 7fb3efe1 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing CUDA compilation

parent e5dc981e
No related branches found
No related tags found
No related merge requests found
Pipeline #4082 failed
......@@ -119,6 +119,7 @@ void copy_grid_to_grid(grid_dst_type & gdst, const grid_src_type & gsrc,
template<typename dest_type, typename src_type, unsigned int ... prp>
void copy_with_openmp_prp(const dest_type & dst, const src_type & src, ite_gpu<dest_type::dims> ite)
{
#ifdef __NVCC__
auto lamb = [&dst,&src,&ite] __device__ (dim3 & blockIdx, dim3 & threadIdx)
{
grid_key_dx<dest_type::dims> i;
......@@ -146,6 +147,9 @@ void copy_with_openmp_prp(const dest_type & dst, const src_type & src, ite_gpu<d
};
CUDA_LAUNCH_LAMBDA(ite,lamb);
#else
std::cout << __FILE__ << ":" __LINE__ << " error CUDA on back end is disabled" << std::endl;
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment