[SOLVED] CUDA ERROR: invalid argument(func: cuMemcpy, caller: PoolAlloc)

Hi Rama,

When I run the samples:
a. Select g3DPrint as the start up project.
b. Click run/debug

It shows such error:
CUDA ERROR: invalid argument(func: cuMemcpy, caller: PoolAlloc)


cmake.txt (2.19 KB)

How can I solve such problem? Thank you, Rama.

Hi Zhenguo,

Which GPU are you using?
What is your system config?
Did you make any change to g3DPrint, or is it the original sample?

Hi Rama,
I installed in tow machines, which are:

  1. Win10x64, VS2015, GPU: Nvidia Quadro M4000, CUDA8.0
  2. Win10x64, VS2015, GPU: Nvidia Quadro K600, CUDA8.0
    Both this two have the same cuda error.

I did nothing on the sample files.
The gvdb.library can runs well. Then I want to test the samples built-in. The cuda error occurs.

I have the same problem with 3DPrint:
CUDA ERROR: invalid argument(func: cuMemcpy, caller: PoolAlloc)

Is there any advance with that?

I met the same problem when I am running other samples.

For example, gFluidSurface:

Reading TGA: D:/gvdb/source/shared_assets/arial.tga
PERF_INIT: No CPU markers.
PERF_INIT: No GPU markers.
PERF_INIT: Disabling perf. No CPU or GPU markers.
Starting Fluid System.
Add Particles. Density: 400.000000, Spacing: 1.393426, PDist: 0.008008
CUDA Config:
Pnts: 500000, t:2605x192=500160, Size:500160
Grid: 1394450, t:7263x192=1394496, bufGrid:0, Res: 167x50x167
Creating screen buffer. 1024 x 768
Running…
CUDA ERROR: invalid argument (func: cuMemcpy, caller: PoolAlloc)
Error. Application will exit.

I’m seeing the exact same error. Builds fine and fails to run

Reading TGA: C:/gvdb/source/shared_assets/arial.tga
Starting GVDB.
Device List:
0. GeForce GTX 960M, Runtime Ver: 5.0
Driver Device: 0
Runtime Device: 0
CUDA Total Mem: 2048.00 MB
CUDA Free Mem: 1557.21 MB
Loading polygon model.
Loading and parsing model ‘lucy.obj’…
(*) Stride: 24, Offsets: v 0, m 0, o 0, n 12 t 0
Model reading completed successfully! (25002 verts, 50000 tris)
L1 range: 0 0 0, 2 3 2
CUDA ERROR: invalid argument (func: cuMemcpy, caller: PoolAlloc)
Error. Application will exit.

I fixed the problem by specifying a different generator in the cmake-gui

I used Visual Studio 14 2015 Win64. I had been using the non Win64 version. Once generated I opened it in VS 2015 and got the demo to work.