Commit 1dee646
authored
[SYCL] Hide inline definitions of stdio functions (#18174)
MSVC's inline definitions of stdio functions such as printf() are only
meant for host code; device code cannot call them. Device code can,
however, call ext::oneapi::experimental::printf() which depending on the
target is implemented as a call to the global printf(). The availability
of a definition of the global host printf() makes it more difficult to
handle in device code, so hide it.1 parent 0caa83c commit 1dee646
1 file changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1535 | 1535 | | |
1536 | 1536 | | |
1537 | 1537 | | |
1538 | | - | |
1539 | | - | |
1540 | | - | |
1541 | | - | |
1542 | | - | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
1543 | 1544 | | |
1544 | 1545 | | |
1545 | 1546 | | |
1546 | | - | |
| 1547 | + | |
1547 | 1548 | | |
1548 | 1549 | | |
1549 | 1550 | | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
1550 | 1557 | | |
1551 | 1558 | | |
1552 | 1559 | | |
| |||
0 commit comments