Skip to content

Issues Handling

Jim00000 edited this page Jan 10, 2018 · 4 revisions

Build issues

‘memcpy’ was not declared in this scope

If you encounter the compilation error like that

In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:
error: ‘memcpy’ was not declared in this scope

Then add compilation options -D_FORCE_INLINES to nvcc flags

That is, nvcc -Xcompiler -fPIC -O2 -c wave_equation_cuda_api.cu -D_FORCE_INLINES

cannot find -cudart

Maybe you will encounter such situations like that

/usr/bin/ld: cannot find -lcuda

Just add "-L/usr/local/cuda-./lib64" before "-lcudart" in extra_link_args field

e.g. extra_link_args=["-L/usr/local/cuda/lib64" ... , "-lcudart", ... ]

Clone this wiki locally