Out of Memory on 9400M?

Hello –

I am trying to run my CUDA code on a second generation MacBook Air, which has a 9400M card, under Windows. I find I cannot call cudaMalloc(), even for a single doubleword, without getting an out of memory exception from the CUDA runtime. I also cannot run the bandwidthtest and others for the same reason. Is there anyone else who has been able to resolve similar errors on this configuration? I have searched the forum a little bit, but the only suggestions I have seen involved eliminating extra displays or reducing the resolution. I find even with 800x600 resolution and 16 bit colour I still receive this exception. Any help is much appreciated!

Thanks,
EA

Hello again –

I don’t know if it helps, but my device query information looks like this:

CUDA Device Query (Runtime API) version (CUDART static linking)

Found 1 CUDA Capable device(s)

Device 0: “GeForce 9400M”
CUDA Driver Version / Runtime Version 4.0 / 4.0
CUDA Capability Major/Minor version number: 1.1
Total amount of global memory: 0 MBytes (0 bytes)
( 2) Multiprocessors x ( 8) CUDA Cores/MP: 16 CUDA Cores
GPU Clock Speed: 0.80 GHz
Memory Clock rate: 1066.00 Mhz
Memory Bus Width: 64-bit
Max Texture Dimension Size (x,y,z) 1D=(8192), 2D=(65536,32768), 3D=(2048,2048,2048)
Max Layered Texture Size (dim) x layers 1D=(8192) x 512, 2D=(8192,8192) x 512
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 16384 bytes
Total number of registers available per block: 8192
Warp size: 32
Maximum number of threads per block: 512
Maximum sizes of each dimension of a block: 512 x 512 x 64
Maximum sizes of each dimension of a grid: 65535 x 65535 x 1
Maximum memory pitch: 2147483647 bytes
Texture alignment: 256 bytes
Concurrent copy and execution: No with 0 copy engine(s)
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: Yes
Support host page-locked memory mapping: Yes
Concurrent kernel execution: No
Alignment requirement for Surfaces: Yes
Device has ECC support enabled: No
Device is using TCC driver mode: No
Device supports Unified Addressing (UVA): No
Device PCI Bus ID / PCI location ID: 2 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 4.0, CUDA Runtime Versi
on = 4.0, NumDevs = 1, Device = GeForce 9400M
[deviceQuery.exe] test results…
PASSED

Is the problem that this is an integrated device, and the “Total amount of global memory” is zero? I have tried also allocating with cudaHostAlloc() and cudaMallocHost(), but I receive also the same exception for these calls. Am I trying to allocate memory in an inappropriate way for this device? I seem to understand others use the 9400M for CUDA but so far am left very perplexed.

Thanks so much,
EA

Total amount of global memory: 0 MBytes (0 bytes). CUDA is not install properly.

pasoleatis–

Thank you very much. Following your idea, I was eventually able to make this work by installing the v.3.2 drivers and runtime instead of v.4.0.

All best–
EA