printf question
@xmnboy ci sta già lavorando.
Dal 29/10/2021.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
It is not clear why printf is not supported in DPC++. printf is supported in DPC++ with CUDA support.
Addressing Warnings in Migrated Code
Migration generated one warning for code that dpct could not migrate:
warning: DPCT1015:0: Output needs adjustment.
As you have noticed, the migration of this project resulted in one DPCT message that needs to be addressed, DPCT1015. This message is shown because as the Compatibility Tool migrated from the printf-style formatted string in the CUDA code to the output stream supported by DPC++, manual adjustment is needed to generate the equivalent output.
Open result/foo/bar/util.dp.cpp and locate the error DPCT1015. Then make the following changes:
Change:
stream_ct1 << "kernel_util,%d\n";
to
stream_ct1 << "kernel_util," << c << sycl::endl;
You’ll also need to change the stream statement in result/foo/main.dp.cpp.
Change:
stream_ct1 << z"kernel_main!\n";
to
stream_ct1 << "kernel_main!" << sycl::endl;
- Lingua principale
- C++
- Stelle
- 1.2k
- Fork
- 745
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di oneapi-src/oneAPI-samples
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
oneapi-src/oneAPI-samples#2764 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
oneapi-src/oneAPI-samples#2748 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
oneapi-src/oneAPI-samples#2746 ·
-
Lenovo Thinkpad T440p Ethernet issue warning sign show install multiple times but same issue face Apertaquestion
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
oneapi-src/oneAPI-samples#2739 ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
oneapi-src/oneAPI-samples#2705 ·
Tutte le issue di oneapi-src/oneAPI-samples
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
gazebosim/gz-sensors#662 · 1 commento ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
comp-datalake
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
LadybirdBrowser/ladybird#12123 ·