Closed yishilin14 closed 4 years ago
Thanks for the feedback ; this must be an incompatibility issue between GPUtils and Windows, I'll try to add another safeguard, to avoid workarounds :)
It should be done; Please try to update your package and check if the error is still there !
It works now! Thank you so much! Your package is awesome.
I am using Windows 7 and I don't have a GPU.
I create a fresh conda environment as follows.
Packages:
Executing![image](https://user-images.githubusercontent.com/7790907/65428875-be675c80-de47-11e9-84a4-4e50753284fb.png)
import cdt
failed.The following lines caused the problem. https://github.com/Diviyan-Kalainathan/CausalDiscoveryToolbox/blob/6df55f4ec0800a377cb4688b7eaedb2b1f75f3fe/cdt/utils/Settings.py#L161-L163
My workaround is executing
os.environ["CUDA_VISIBLE_DEVICES"]="[]"
before executingimport cdt
.