Skip to content

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

@dzhoshkun

Description

@dzhoshkun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions