m-ky opened a new issue #19579:
URL: https://github.com/apache/incubator-mxnet/issues/19579


   ## Description
   MXNet 1.8.0.rc2, Windows 10, Cuda 11, NVIDIA RTX 3090, C++ build from source
   After build there are several mxnet_XY.dll, where X is cuda major and Y 
minor version. For RTX 3090 mxnet_86.dll should be used.
   However this dll is not chosen, instead it tries to select mxnet_75.dll.
   This causes:
   1. Either mxnet_75.dll is there, which causes PTX compilation to start, if 
mxnet_75.dll contains PTX code (even if there is mxnet_86.dll that can be used 
right away).
   2. Or mxnet_75.dll is not there, which crashes program on first use of any 
mxnet function (nullpointer).
   
   ### Error Message
   Either unnecessarily builds PTX code (if it is present), or crashes on 
nullpointer exception when mxnet_75.dll is not present.
   
   ## To Reproduce
   Build C++ package from source on Windows using Cuda 11.
   MXNET_CUDA_ARCH can be auto (on RTX 3090 this means sm86), or all.
   The use any mxnet function from C++.
   
   ## What have you tried to solve it?
   In file tools/windowsbuild/warp_dll.cpp, there is function find_version() 
that should return which mxnet sm version should be used.
   Third line in that function should be changed to:
   int version = 86;
   
   ## Environment
   MXNet 1.8.0.rc2, Windows 10, Cuda 11, NVIDIA RTX 3090, C++ build from source
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to