printf question
@xmnboy がすでに取り組んでいます。
2021年10月29日 から。
評価
この issue はまだ評価されていません。
説明
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;
- 主要言語
- C++
- スター
- 1.2k
- フォーク
- 745
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
oneapi-src/oneAPI-samples のほかの issue
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
oneapi-src/oneAPI-samples#2764 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
oneapi-src/oneAPI-samples#2748 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
oneapi-src/oneAPI-samples#2746 ·
-
Lenovo Thinkpad T440p Ethernet issue warning sign show install multiple times but same issue face オープンquestion
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
oneapi-src/oneAPI-samples#2739 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
oneapi-src/oneAPI-samples#2705 ·
oneapi-src/oneAPI-samples の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
ros2/message_filters#338 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
subsurface/subsurface#4984 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
google-ai-edge/LiteRT-LM#3739 ·