Hello i`m trying to insert CUDA-code into a SFunction for a simulink model.
Therefor i just renamed the sfunc.c++ to sfunc.cu and compiled it with
nvmex -f nvmexopts.bat sfunc_scalg.cu -IC:\cuda\include -LC:\cuda\lib-lcudart
instead of
mex sfunc (maybe i should mention that the sfunc.c++ could be compilied be mex with no errors)
I haven`t already inserted cuda code and recievived the following error Message:
sfunc_scalg.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol “___cudaUnregisterFatBinary@4” in Funktion “___cudaUnregisterBinaryUtil”.
sfunc_scalg.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol “___cudaRegisterFatBinary@4” in Funktion “___sti____cudaRegisterAll_46_tmpxft_000008c4_00000000_6
_sfunc_scalg_cpp1_ii_32f93f49”
As you can imagine by reading my post i`m completely new to matlab and cuda. <img src=‘http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/crying.gif’ class=‘bbc_emoticon’ alt=‘:’(’ />
Would you please give me a hint wants wrong
Thanks for the effort