Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

Use CUDA_PATH on Windows to find Cuda #6

Merged
merged 3 commits into from
Jan 7, 2019

Conversation

AndrewGaspar
Copy link
Contributor

This change to the build script searches in CUDA_PATH for Cuda when targeting Windows when CUDA_LIBRARY_PATH is not set. CUDA_PATH is set in the typical Cuda install on Windows, so this change makes it easier to use cuda-sys and derived crates on Windows, without having to do anything beyond installing Cuda.

I tried to support building for 32-bit Windows. Nvidia does not ship 32-bit builds for cublas.lib, which cuda-sys currently requires. The code is still there, though, in case this requirement is relaxed.

@AndrewGaspar
Copy link
Contributor Author

The "10.0-devel-ubuntu16.04" run looks like noise. Could you re-run it?

@AndrewGaspar
Copy link
Contributor Author

Hey @bheisler, do you have any feedback on this change?

@bheisler
Copy link
Contributor

Seems reasonable to me. The CUDA_PATH variable is set on my machine.

@AndrewGaspar
Copy link
Contributor Author

Oh, heh, sorry. I had assumed you were the maintainer of this repo.

@bheisler
Copy link
Contributor

Ah, no, I don't have write access so I can't merge this pull request. I believe @termoshtt would have access.

@AndrewGaspar AndrewGaspar force-pushed the find-std-windows-install branch from ac91f72 to 702944c Compare January 3, 2019 21:23
Copy link
Member

@termoshtt termoshtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank PR. I have confirmed this works on my windows machine (with test failures about long)

@termoshtt termoshtt merged commit 6633026 into rust-cuda:master Jan 7, 2019
@termoshtt
Copy link
Member

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants