no instance of overloaded function "surf1Dread" ma

Hello,

I hope someone could help with the following compilation error:

When attempting to compile my CUDA code for x86 architecture, I get
many errors stating “no instance of overloaded function “surf1Dread” matches the specified type” (the complete message appears at the end of the post).

My compilation command line is:

pgcpp -c -O -Mcudax86 top_level_file.cu

and directory includes all the required source files.

Any advice on how to solve this ?


Thank you,

Nir



“C:\PROGRA~1\PGI/win64/2015/cuda/7.0/include/surface_functions.h”, line 319: error:
no instance of overloaded function “surf1Dread” matches the
specified type
forceinline device longlong2 surf1Dread(surface<void, cudaSurfaceType1
D> surf, int x, enum cudaSurfaceBoundaryMode mode)
^

Hi Nir,

CUDA-x86 is only supported on Linux (See: http://www.pgroup.com/resources/cuda-x86.htm#os) so errors on Windows is not unexpected.

While I haven’t used it myself, you may want to try gpuOcelot,http://gpuocelot.gatech.edu/, which performs CUDA C emulation on x86 and supports Windows.

  • Mat