Skip to content

Commit

Permalink
[SYCL] Fix Ambiguity in Overloaded Unary Minus Operator for bfloat16
Browse files Browse the repository at this point in the history
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
  • Loading branch information
smanna12 committed Sep 13, 2024
1 parent 3856438 commit a78dc15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sycl/include/sycl/ext/oneapi/bfloat16.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class bfloat16 {
explicit operator bool() { return to_float(value) != 0.0f; }

// Unary minus operator overloading
friend bfloat16 operator-(bfloat16 &lhs) {
friend bfloat16 operator-(const bfloat16 &lhs) {
#if defined(__SYCL_DEVICE_ONLY__) && defined(__NVPTX__) && \
(__SYCL_CUDA_ARCH__ >= 800)
detail::Bfloat16StorageT res;
Expand Down

0 comments on commit a78dc15

Please sign in to comment.