-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defer PTX file load to runtime (#13690)
This PR fixes an issue where cuDF fails to import on machines with no NVIDIA GPU present. cc @shwina Authors: - https://github.com/brandon-b-miller - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Bradley Dice (https://github.com/bdice) - Ashwin Srinath (https://github.com/shwina) - Vyas Ramasubramani (https://github.com/vyasr) URL: #13690
- Loading branch information
1 parent
1bff508
commit c811987
Showing
3 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
import os | ||
import subprocess | ||
|
||
|
||
def test_cudf_import_no_device(): | ||
env = os.environ.copy() | ||
env["CUDA_VISIBLE_DEVICES"] = "-1" | ||
output = subprocess.run( | ||
["python", "-c", "import cudf"], | ||
env=env, | ||
capture_output=True, | ||
text=True, | ||
cwd="/", | ||
) | ||
assert output.returncode == 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters