I have a question about placing log and atan commands in the device kernel subroutine.
Is it possible to have these two mathematical functions as is possible in normal subroutines processed by the cpu?
In this code I am interested in a(i,j) and I return it to the host in the cpu subroutine. However, this kernel is not working and I suspected the maths operation (log, atan, abs)
This is how I called the device:
call CoefficientDevice<<<1 ,dim3(20,20,1)>>>( adev, ndev, xdev, ydev, bcdev, nodedev, dnormdev ) istat = cudathreadsynchronize() print *, 'Device Done' pause print *, 'changing back to a from adev' pause call system_clock( count=c33 ) a = adev write(6666,*) a pause
and unfortunately I get this error when ‘changing back to a from adev’:
0: copyout Memcpy (host=0x88253f0, dev=0x200000, size=1600) FAILED: 30(unknown error)
my GPU is GT525, 1gb ram
I would really appreciate the help