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

Compilation Error: Cuda 9? #1109

Open
bnsh opened this issue Dec 8, 2017 · 2 comments
Open

Compilation Error: Cuda 9? #1109

bnsh opened this issue Dec 8, 2017 · 2 comments

Comments

@bnsh
Copy link

bnsh commented Dec 8, 2017

Hi. I was following the instructions at http://torch.ch/docs/getting-started.html#_ for building torch.. It seems to have cuda 9 (It's a dgx-station)...

I'm getting this error now tho: (Many instances of it, but, they all seem to be about the same kind of error)

/usr/local/src/torch/extra/cutorch/lib/THC/generic/THCTensorMathPairwise.cu(66): error: more than one operator "!=" matches these operands: function "operator!=(const __half &, const __half &)" function "operator!=(half, half)" operand types are: half != half

Has anyone else seen this?

@sabpap
Copy link

sabpap commented Dec 8, 2017

Same issue here: torch/cutorch#797

@eazolan
Copy link

eazolan commented Feb 16, 2018

Before you build try

export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"

It worked for me. I got it from this thread:

torch/cutorch#797

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

3 participants