Skip to content

Commit

Permalink
fix: gpu compilation with cuda 10.1 (facebookresearch#771)
Browse files Browse the repository at this point in the history
The GPU compilation fails with g++ 8.3.1 and cuda 10.1
With this proposed fix the compilation works locally

Contributes to facebookresearch#751
  • Loading branch information
Steffen911 authored and beauby committed Apr 8, 2019
1 parent 2fb7a2c commit ae20dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpu/utils/Tensor.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ bool canUseIndexType() {

template <typename IndexType, typename T, typename... U>
bool canUseIndexType(const T& arg, const U&... args) {
return arg.canUseIndexType<IndexType>() &&
return arg.template canUseIndexType<IndexType>() &&
canUseIndexType(args...);
}

Expand Down

0 comments on commit ae20dd0

Please sign in to comment.