bibrak@biebo-laptop:~/NVIDIA_CUDA_SDK/projects/multiown$ make
obj/release/multiguide.cu.o: In function matmul(Matrix, Matrix, Matrix)': tmpxft_00002098_00000000-11_multiguide.ii:(.text+0x3b2): undefined reference to cuMemGetInfo’
collect2: ld returned 1 exit status
make: *** […/…/bin/linux/release/multi] Error 1
when i use cuMemGetInfo function
i have ubuntu 9.04 card is 9200M
please tell me the library or the solution to this problem
but there is a strange output when I query the memory.
– before running kernel
total mem: 128.405 MB, free: 128.293 MB, used : 0.113 MB
total mem: 128.405 MB, free: 128.293 MB, used : 0.113 MB
– after running kernel
total mem: 255.312 MB, free: 133.688 MB, used : 121.625 MB
error is no error
Processing time: 7073.609863 (ms)
total mem: 255.312 MB, free: 145.688 MB, used : 109.625 MB
total mem: 255.312 MB, free: 145.688 MB, used : 109.625 MB
– end
why there is change in the total memory before and after the kernel launches.
by the way my device query --------
There is 1 device supporting CUDA
Device 0: “GeForce 9200M GE”
CUDA Capability Major revision number: 1
CUDA Capability Minor revision number: 1
Total amount of global memory: 267714560 bytes
Number of multiprocessors: 1
Number of cores: 8
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: 262144 bytes
Texture alignment: 256 bytes
Clock rate: 1.30 GHz
Concurrent copy and execution: No
Run time limit on kernels: Yes
Integrated: Yes
Support host page-locked memory mapping: Yes
Compute mode: Default (multiple host threads can use this device simultaneously)
I don’t believe those mobile and integrated parts have dedicated video memory, they share host memory via their integrated memory controller. My guess is that you are seeing the gpu using “just in time” memory reservation, ie. it can use up to 256Mb, but it might use less if there isn’t a demand for it.