Compile 32 bit dll for cuda on 64 bit MATLAB?

4 次查看(过去 30 天)
Hello sir
i am compiling 32 bit dll on 64 bit MATLAB using link (Build 32-bit DLL on 64-bit Windows Platform Using MSVC Toolchain - MATLAB & Simulink (mathworks.com) ) , integrating it with labview 2019 (32 bit) and its working fine. However, i want to compile 32 bit cuda dll on 64 bit MATLAB (for reference i have build the 64 bit MATLAB dll of the same code using GPU coder app of MATLAB). Can anyone guide me how i can compile 32 bit dll of the same code using GPU coder or this (Build 32-bit DLL on 64-bit Windows Platform Using MSVC Toolchain - MATLAB & Simulink (mathworks.com) ) ?
  2 个评论
Walter Roberson
Walter Roberson 2021-6-3
  • Visual Studio 2019 16.x; or
  • Visual Studio 2017 15.x (RTW and all updates)
and also that support is only provided for GeForce GPUs .
Could you confirm that you have VS 2019 or VS 2019, and that you are targetting a GeForce GPU ?
mirza ali
mirza ali 2021-6-4
Sir thank you for your reply.
i have installed vs 2019 and checked the GPU environment setup using command coder.checkGpuInstall, as a result of this command, i can generate and excecute basic code. In addition i have Nvidia RTX 2060 GPU on which i am trying to compile the code. Sir it is pertinent to mention here that GPU coder is compiling the code perfectly but as a result of it i got 64 bit GPU code (.dll) file. i just want to compile it as 32 bit dll (like the method given by Build 32-bit DLL on 64-bit Windows Platform Using MSVC Toolchain - MATLAB & Simulink (mathworks.com) (as this link supports 32 bit compilation of c and c++ codes but not .cu codes)

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2021-6-4
  • Product type: GeForce
  • Product series: GeForce RTX 20 Series
  • Product: GeForce RTX 2060
  • Operating System
... you will see that there are no drivers available for 32 bit Windows.
  1 个评论
mirza ali
mirza ali 2021-6-4
sir i am using windows 2010 (64 bit), using that i have successfully compiled 64 bit dll (via Matlab coder app) then i run .m file of this link Build 32-bit DLL on 64-bit Windows Platform Using MSVC Toolchain - MATLAB & Simulink (mathworks.com) and compiled 32 bit version of the same code and finally i integrated it with labview 32 bit.
now all i need it to compile 32 bit version of the 64 bit dll which is successfully been compiled via GPU coder app. i am hoping to find some work around using the same link Build 32-bit DLL on 64-bit Windows Platform Using MSVC Toolchain - MATLAB & Simulink (mathworks.com).

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with GPU Coder 的更多信息

产品


版本

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by