Skip to content

Commit

Permalink
Fix PTX compilation on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Speierers committed Nov 13, 2020
1 parent 8fa0a80 commit 44064dd
Show file tree
Hide file tree
Showing 2 changed files with 509 additions and 508 deletions.
4 changes: 2 additions & 2 deletions include/mitsuba/render/optix/vector.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,15 @@ template <typename Value, size_t Size>
DEVICE Value dot(const Array<Value, Size> &a1, const Array<Value, Size> &a2) {
Value result = a1.v[0] * a2.v[0];
for (size_t i = 1; i < Size; ++i)
result = fmaf(a1.v[i], a2.v[i], result);
result = ::fmaf(a1.v[i], a2.v[i], result);
return result;
}

template <typename Value, size_t Size>
DEVICE Value squared_norm(const Array<Value, Size> &a) {
Value result = a.v[0] * a.v[0];
for (size_t i = 1; i < Size; ++i)
result = fmaf(a.v[i], a.v[i], result);
result = ::fmaf(a.v[i], a.v[i], result);
return result;
}

Expand Down
Loading

0 comments on commit 44064dd

Please sign in to comment.