DPCT3002#

メッセージ#

“<Library specific to CUDA>” は、SYCL* コンパイラーのオプション “-fsycl” との併用がサポートされていないため削除されました。ビルドオプションを確認する必要があります。

詳細な説明#

“<Library specific to CUDA>” は、SYCL* コンパイラーのオプション “-fsycl” との併用がサポートされていないため削除されました。ビルドオプションを確認する必要があります。

修正方法の提案#

例えば、以下のオリジナル CUDA* コードについて考えてみます。

1  target_link_options(nvcv_util_compat 
2  PUBLIC 
3   -static-libstdc++ 
4   -static-libgcc 
5   -Wl,--wrap=__libc_start_main 
6   -Wl,-u__cxa_thread_atexit_impl 
7  )

移行された CMake スクリプトは次のようになります。


1  target_link_options(nvcv_util_compat 
2  PUBLIC 
3   # DPCT3002:1: "-static-libstdc++" is removed because it is not supported for use 
4   alongside option "-fsycl" of SYCL compiler.You may need to check the build 
5   options.
6   -static-libgcc 
7   -Wl,--wrap=__libc_start_main 
8   -Wl,-u__cxa_thread_atexit_impl 
9  )

このコードは次のように書き換えられます。


1  target_link_options(nvcv_util_compat 
2  PUBLIC 
3   -static-libgcc 
4   -Wl,--wrap=__libc_start_main 
5   -Wl,-u__cxa_thread_atexit_impl 
6  )