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

Fix building on cuda 11.4 #817

Merged
merged 2 commits into from
Jul 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,22 @@ def get_cuda_version_from_header(cuda_include_dir):
cuda_version_to_pxi_dir = {
"10.1": "10.1",
"10.2": "10.2",
"11.0": "11.x",
"11.1": "11.x",
"11.2": "11.x",
"11.3": "11.x",
"11": "11.x",
}

for pxd_basename in files_to_preprocess:
pxi_basename = os.path.splitext(pxd_basename)[0] + ".pxi"
if CUDA_VERSION in cuda_version_to_pxi_dir:
pxi_dir = cuda_version_to_pxi_dir.get(CUDA_VERSION)
if not pxi_dir:
# didn't get an exact match on major.minor version - see if
# we have a match on just the major version
pxi_dir = cuda_version_to_pxi_dir.get(CUDA_VERSION.split(".")[0])

if pxi_dir:
pxi_pathname = os.path.join(
cwd,
"rmm/_cuda",
cuda_version_to_pxi_dir[CUDA_VERSION],
pxi_dir,
pxi_basename,
)
pxd_pathname = os.path.join(cwd, "rmm/_cuda", pxd_basename)
Expand Down