Mat?
I have a program near exactly the same as posted above (actually I copied the code on your video tutorial). when m = 3000 it works when m=4000 it does not (and the monitor black screens for a few seconds before crashing). The output of GPUZ shows GPU load going to ~80-90% for a second or so then back to 0%. I have underclocked the GPU to as low as it can go. Similarly I have a large serial code I am trying to parallelize and get the same message as in the below exmple. This is actually what I am trying to do but thought it best to try and recreate the problem with a simpler bit of code.
!Test Program for OMP, Acc and Profiling
!A.Black 26/6/11
program TestProg
REAL(KIND=4), ALLOCATABLE :: a(:,:),b(:,:),c(:,:)
REAL(KIND=4) m
m=4000
ALLOCATE(a(m,m),b(m,m),c(m,m))
WRITE(*,*) m
!$acc region
do j = 1,m
do i = 1,m
a(i,j)=0.0
enddo
do k = 1,m
do i = 1,m
a(i,j)=a(i,j)+b(i,k)*c(k,j)
enddo
enddo
enddo
!$acc end region
WRITE(*,*) 'done'
end program TestProg
The error I get is:
“call to cuMemAlloc returned error 2: Out of Memory
CUDA driver version: 4000”
the accel info is:
C:\Program Files\PGI\win64\11.3\bin>pgaccelinfo
CUDA Driver Version: 4000
Device Number: 0
Device Name: GeForce GTX 275
Device Revision Number: 1.3
Global Memory Size: 879034368
Number of Multiprocessors: 30
Number of Cores: 240
Concurrent Copy and Execution: Yes
Total Constant Memory: 65536
Total Shared Memory per Block: 16384
Registers per Block: 16384
Warp Size: 32
Maximum Threads per Block: 512
Maximum Block Dimensions: 512, 512, 64
Maximum Grid Dimensions: 65535 x 65535 x 1
Maximum Memory Pitch: 2147483647B
Texture Alignment: 256B
Clock Rate: 1404 MHz
Current free memory: 788955136
I updated the driver today and no effect
I am also using PG visual fortran iusing the windows env (not commandline)?
its a 64bit application and the OS is Win7 64b
Do you have any suggestions as to what may be going wrong because whatever I do I get the out of memory error and from using GPUZ and back of the envelope calcs of array sizes I dont think this shouldnt be the case.
THANKS
Al