Commit 0203c6c
authored
[SYCL] Fix macro in device library function declaration (#1324)
As our compiler are based on LLVM , so:
"if defined(__GNUC__) || defined(__clang__)" will always be true as __clang__ will always be defined
and "elif defined(_MSC_VER)" will always be false as only _MSC_VER is a Microsoft CL compiler's macro telling its version. Current code will lead to std::assert building failure on Windows.
Signed-off-by: gejin <[email protected]>1 parent 197b24a commit 0203c6c
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1543 | 1543 | | |
1544 | 1544 | | |
1545 | 1545 | | |
1546 | | - | |
| 1546 | + | |
1547 | 1547 | | |
1548 | 1548 | | |
1549 | 1549 | | |
1550 | 1550 | | |
1551 | | - | |
| 1551 | + | |
1552 | 1552 | | |
1553 | 1553 | | |
1554 | 1554 | | |
1555 | 1555 | | |
1556 | | - | |
| 1556 | + | |
1557 | 1557 | | |
1558 | 1558 | | |
1559 | 1559 | | |
0 commit comments