-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
cufile.log file in the current directory #6020
Comments
may I assign this to you @mingxin-zheng? this will affect all the containers I think. |
Sure. Just took a stab on it. The file appeared in PyTorch 22.11 but not 22.09. |
Hi @wyli , is there any component in MONAI using |
looks like it's from cucim... rapidsai/cucim#514 |
Yes. If we use |
It seems we need to set
|
so for the |
I just checked that I cannot think of another way to get rid of this file for |
Hi @mingxin-zheng, I've created a workaround to remove unnecessary cucim imports... #6106 I feel it makes sense for now that the log file is only created when the user triggers some cucim functions. |
Hi @wyli , I test this on another system with virtualvenv on another machine with I think delaying the imports seems a reasonable solution for MONAI 1.2 and later versions. But the fix wouldn't affect the previous versions. Should we specify the location of this file in existing container building process (e.g. MONAI 1.0.1 + PyTorch 23.02 in Toolkit), or just leave it in the working directory? cc @Nic-Ma . |
Fixes #6020 ### Description ``` pip install cucim python -c "import cucim" ``` may create a `cufile.log` file in the current working directory (please see rapidsai/cucim#514) this PR delays the cucim imports to when the modules are really needed. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [x] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [x] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: Wenqi Li <[email protected]>
Describe the bug
running
will create a
cufile.log
in the current directory.to replicate:
expected behaviour:
No such file or directory
The text was updated successfully, but these errors were encountered: