[Closed] CUDA anyone?
Hello,
I am trying to link to CUDA from my 3dsmax plugin. But as soon as I have CUDA code in the plugin and link to the CUDA libs the plugin fails to load with error code 126 – procedure not found. Has anybody had any luck with linking to CUDA?
I tried to start 3dsmax in opengl mode, but this doesnt work either.
What I did is I took the template project from the CUDA SDK and dumped my plugin code in. Then I added all the 3dsmax SDK settings. Switched to dll instead of exe and commented out the CUDA main function. I also added the .def file in the project settings.
The CUDA samples all run fine here. And if I exclude the CUDA functions all runs fine in 3dsmax, too.
Any other ideas?
Best regards,
Dieter
It looks like it’s a dependency problem. Maybe CUDA needs some dlls or resources to be copied to 3dsmax executable directory.
Bingo!
thanks for the hint. Copying the dlls to the 3dsmax root directory helped. It loads fine now!
Now the fun can begin.
Best regards,
Dieter