Skip to content

an "import cudf" leads to an error #780

Closed Answered by emeryberger
MarcoMagl asked this question in Q&A
Discussion options

You must be logged in to vote

This issue (which appears to be some interference of printing to stdout instead of stderr) went away for me after running it once as root (a.k.a., superuser). That said, I'll change these print statements to go to stderr.

In any event: I first created a virtual environment and installed Scalene and cudf (getting its dependencies first).

$ sudo apt install nvidia-cuda-toolkit
$ python3 -m venv test-cudf
$ source ../test-cudf/bin/activate
(test-cudf) $ python3 -m pip install scalene cudf

Then I ran the code as root.

$ sudo bash
# source ../test-cudf/bin/activate
(test-cudf) # python3 -m scalene --cpu --gpu testcudf.py 

It continues to run fine afterwards when not running as root.

(test-cudf…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by emeryberger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants