Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: cannot pass an argument with a user-provided copy-constructor to a device-side kernel launch #1

Open
dzhoshkun opened this issue Jul 16, 2018 · 0 comments

Comments

@dzhoshkun
Copy link

When compiling the dynamic mandelbrot example, I get the following error:

[0] % make WRITE_PNG=no
nvcc -O3 -arch=sm_35 -DSKIP_PNG_WRITING --relocatable-device-code=true \
	-Xcompiler -Wall -Xcompiler -fopenmp mandelbrot.cu pngwriter.o -o mandelbrot -lpng
mandelbrot.cu(178): error: cannot pass an argument with a user-provided copy-constructor to a device-side kernel launch

mandelbrot.cu(178): error: cannot pass an argument with a user-provided copy-constructor to a device-side kernel launch

mandelbrot.cu(184): error: cannot pass an argument with a user-provided copy-constructor to a device-side kernel launch

mandelbrot.cu(184): error: cannot pass an argument with a user-provided copy-constructor to a device-side kernel launch

4 errors detected in the compilation of "/tmp/tmpxft_00000c38_00000000-8_mandelbrot.cpp1.ii".
Makefile:14: recipe for target 'mandelbrot' failed
make: *** [mandelbrot] Error 1

My system specs follow:

  • GPU: TITAN X
  • NVIDIA Driver: 396.37
  • CUDA 9.2.148
  • OS: Ubuntu 16.04 LTS with kernel: 4.4.0-130-generic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant