delicasso
delicasso

Reputation: 187

Python app using cupy and cupyx fails with cl.exe not found: how to package to work with no cl.exe on target machine

The app is built in Python on Windows 10 and make heavy use of cupy and cupyx.scipy.ndimage, and a few other cupyx libraries: It is distributable and it works. It now needs to go to a more secure location with no internet access, and no C++ installed on the computer. When I tried to run the app, I got a Cl.exe not found error. Not a surprise in retrospect.

Cupy has a cache directory for code compiled on the build/test/development machine. I tried to distribute that cached code with the app, making sure I set the new path on the target machine, but that did not help. Still got the cl.exe not found.

I even tried this on my development machine by running my code, then setting the CUPY_CACHE_DIR to the correct path, then disabling cl.exe, and re-running the exact same code, same data, same OS obviously. still failed with cl.exe not found. I guess I'm confused, what is the cache for if not to speed up the code and avoid compiling if it is already compiled. Is there no way to distribute a complete and fully compiled system so no C++ (cl.exe) is needed on the target computer?

I'm using cupy 12.3.0, Windows 10, NVidia Cuda 11.8, visual studio 2022 Building distribution with PyInstaller and Innosetup.

Thanks David

Upvotes: 0

Views: 54

Answers (0)

Related Questions