Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win32 setup script to install pycuda, nvapi #2400

Open
totaam opened this issue Aug 31, 2019 · 6 comments
Open

win32 setup script to install pycuda, nvapi #2400

totaam opened this issue Aug 31, 2019 · 6 comments
Labels
packaging win32 MS Windows OS
Milestone

Comments

@totaam
Copy link
Collaborator

totaam commented Aug 31, 2019

As per #1413#comment:2.

@totaam
Copy link
Collaborator Author

totaam commented Sep 2, 2019

Downloading CUDA requires authentication, so this can't be fully automated.

@totaam
Copy link
Collaborator Author

totaam commented Apr 3, 2020

Updated instructions:

  • install latest ​CUDA (tested with v10.2)
  • download ​pycuda and build it (tested with 2019.2):
python3 ./configure.py --cuda-root="c:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.2"
  • remove /EHsc and /FORCE from siteconf.py.
  • add BOOST_USE_WINDOWS_H=1 in EXTRA_DEFINES of setup.py to workaround this boost bug: http://stackoverflow.com/questions/18134148
  • python3 ./setup.py build -c mingw32
  • python3 ./setup.py install

There are some new dependencies: mako, pytools, markupsafe.

@totaam totaam added v3.0.x packaging win32 MS Windows OS and removed v3.0.x labels Jan 22, 2021
@totaam totaam added this to the 5.0 milestone Jan 23, 2021
@totaam
Copy link
Collaborator Author

totaam commented Jul 24, 2021

With pycuda 2021.1, there are new MSVC-isms to comment out in setup.py: /FORCE and /EHsc.

totaam added a commit that referenced this issue Jun 21, 2022
@totaam
Copy link
Collaborator Author

totaam commented Jun 21, 2022

The commit above improves things, but we're still missing pytools.

@totaam
Copy link
Collaborator Author

totaam commented Jan 15, 2024

The pycuda changes are now in a PR: inducer/pycuda#434

@totaam
Copy link
Collaborator Author

totaam commented Aug 3, 2024

The PR has been merged, pycuda 2024.1.2 can be built with:

python3 ./configure.py  --cuda-root="C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3" --no-use-shipped-boost  --boost-python-libname=libboost_python311-mt  --boost-thread-libname=libboost_thread-mt
python3 setup.py build -c mingw32
python3 setup.py install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packaging win32 MS Windows OS
Projects
None yet
Development

No branches or pull requests

1 participant