Hi, I have this problem when I try to compile my cuda source .
lab.cu(132): error: calling a host function from a device/global function is only allowed in device emulation mode
This is the problematic line:
R_nm[threadIdx.x] += pow(polar[Index].x,(n-2s)) pow(-1,s)* (fac_table[n-s]/(fac_table[a-s]*fac_table[s]*fac_table[b-s]));
The problem is in the pow function, the problem only appears if I use it.
I’m using a GeForce GTX 280 device and i have added -arch sm_13 in my common.mk
NVCCFLAGS += $(SMVERSIONFLAGS) -arch sm_13
Sorry for my English >.< .