Skip to content
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

error installing on Mac #11

Closed
niujiaopeng opened this issue Oct 18, 2018 · 1 comment
Closed

error installing on Mac #11

niujiaopeng opened this issue Oct 18, 2018 · 1 comment

Comments

@niujiaopeng
Copy link

Hi,
when I'm trying to install on Mac,here is the error:raise EnvironmentError('CUDA_HOME environment variable is not set).my pytorch version is 0.4.1,python is 3.6; because pytorch on Mac only support cpu, so I don't need set CUDA_HOME environment may be, any suggestion?

@ClementPinard
Copy link
Owner

You can try to pop the .cu file from this line : https://github.com/ClementPinard/Pytorch-Correlation-extension/blob/master/setup.py#L8

Can you stack the entire stacktrace ? Maybe there's an error when trying to import the CUDAExtension from the module torch.utils.cpp_extension . Inb that case, you may have to replace the CUDAExtension import to CppExtension. The code for both functions is here : https://github.com/pytorch/pytorch/blob/master/torch/utils/cpp_extension.py#L401

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants