Closed kmorel closed 3 years ago
@kmorel This is a known issue caused by a bug in NVCC (bug report). Currently, we workaround this problem by having two headers: compress.hpp
for user's program that is to be compiled with C/C++ compilers and compress_cuda.hpp
for user's program that is to be compiled with NVCC compiler. Users can invoke the GPU compression using both methods. You can refer to the document for MGRAD-GPU for more details about headers and APIs in here.
Thanks for the clarification and pointing me to the MGARD-GPU documentation.
It does not seem to be possible to compile an MGARD application with
nvcc
. More specifically, if you have includecompress.hpp
,nvcc
gives some strange compile errors. This is a problem since functions likemgard_cuda::compress
are defined incompress.hpp
.I can replicate the problem with the following trivial source file:
When I attempt to compile this with
nvcc
, I get the following errors:To make it easy to replicate, here is a tiny CMake project that demonstrates the problem: mgardcudatest.tar.gz.
Here is a capture of me replicating this issue on summit.