Ali
Ali

Reputation: 141

x86 32-bit Support for Cuda

I am working on a vision system and using Opencv for image processing and I have to present the whole system as a 32 bit ActiveX control to be integrated in an IWS (Indosoft Web Studio) application as IWS is 32 bit.

How can I do that as I would need a 32 bit Opencv build with cuda support and there is no 32 bit Cuda toolkit any more. Can anyone please clarify the following from Nvidia.

Native development using the CUDA Toolkit on x86_32 is unsupported. Deployment and execution of CUDA applications on x86_32 is still supported, but is limited to use with GeForce GPUs. To create 32-bit CUDA applications, use the cross-development capabilities of the CUDA Toolkit on x86_64.

Support for developing and running x86 32-bit applications on x86_64 Windows is limited to use with: GeForce GPUs CUDA Driver CUDA Runtime (cudart) CUDA Math Library (math.h) CUDA C++ Compiler (nvcc) CUDA Development Tools

I can see the point but I can't find any direction on how to use the cross-development capabilities of the CUDA Toolkit on x86_64.

Upvotes: 0

Views: 1995

Answers (1)

talonmies
talonmies

Reputation: 72352

Echoing a comment into an answer -- yes you can cross compile to 32 bit output using a 64 bit CUDA tool chain in Windows. However, NVIDIA ceased delivering 32 bit CUDA application libraries many years ago. Quoting Robert Crovella:

This means that CUFFT, CUBLAS, NPP, and other such libraries are only provided for use when the x64 platform is selected. If OpenCV had any dependency on NPP, for example, you would be out of luck

Given OpenCV has dependencies on CUFFT, CUBLAS, and NPP, it is extremely unlikely that you can build and run a 32 bit OpenCV version using a modern CUDA toolkit because of the lack of libraries.

Upvotes: 3

Related Questions