an "import cudf" leads to an error #780
|
I have a python file that I can run successfully up to completion. I did not see any similar issue reported and as a new user of scalene, I am not sure on which side the error would be. Does someone have an idea? Thanks! |
Answered by
emeryberger
Feb 20, 2024
Replies: 1 comment
|
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 cudfThen 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) $ python3 -m scalene --cpu --gpu testcudf.py |
0 replies
Answer selected by
emeryberger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 cudfThen I ran the code as root.
It continues to run fine afterwards when not running as root.