-
Notifications
You must be signed in to change notification settings - Fork 15
Common Issues and Errors
Matt Norman edited this page Aug 2, 2022
·
2 revisions
To fix this, call enable_language(CUDA)
in your main CMakeLists.txt
before calling add_subdirectory(yakl)
It's likely you are using data inside a kernel that is not in local scope. You could have data from global scope, a name space scope (outside of functions or classes), or the local class scope. You need to use the YAKL_SCOPE
macro before using that data in a kernel, e.g.:
YAKL_SCOPE( data , ::data ); // OR
YAKL_SCOPE( data , my::name::space::data ); // OR
YAKL_SCOPE( data , this->data );
Please add the CPP macro -DHAVE_MPI
to the YAKL_[ARCH]_FLAGS
CMake variable (or add it to the compiler flags in a regular makefile). Then, YAKL will only print to stdout from task 0.