and call this kernel from host,but when I compile, it come up with the error: “calling a host function from a device/global function is only allowed in device emulation mode”,and when I replace the __sin() with sin(), it is ok!
and call this kernel from host,but when I compile, it come up with the error: “calling a host function from a device/global function is only allowed in device emulation mode”,and when I replace the __sin() with sin(), it is ok!
thou shall not sin(), for it is __sinf() you seek. And the cuda programming guide said: behold __sinf(), for it is faster. And there was much rejoicing :)
thou shall not sin(), for it is __sinf() you seek. And the cuda programming guide said: behold __sinf(), for it is faster. And there was much rejoicing :)