Clear Filters
Clear Filters

Compile 32 bit dll for cuda on 64 bit MATLAB?

4 views (last 30 days)
mirza ali
mirza ali on 2 Jun 2021
Commented: mirza ali on 4 Jun 2021
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 Comments
Walter Roberson
Walter Roberson on 3 Jun 2021
  • 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 on 4 Jun 2021
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)

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 4 Jun 2021
  • 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 Comment
mirza ali
mirza ali on 4 Jun 2021
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).

Sign in to comment.

Categories

Find more on Get Started with GPU Coder in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!