-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPUでのテスト修正 #194
GPUでのテスト修正 #194
Conversation
if (SCALUQ_USE_CUDA) | ||
target_compile_options(scaluq PUBLIC $<IF:$<CONFIG:Debug>,-O0 -g,-O3>) | ||
else() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NVCCで -fsanitize=address,undefined としてカンマを用いるとうまくパースできないようでした.
加えてそもそも CUDA と sanitizer の相性が悪いようなので,これ自体を除きます.別のチェッカーを導入してもいいかもしれません.
@@ -19,7 +19,7 @@ constexpr Fp eps_() { | |||
else if constexpr (std::is_same_v<Fp, float>) | |||
return 1e-4; | |||
else | |||
static_assert(internal::lazy_false_v<void>, "unknown GateImpl"); | |||
static_assert(internal::lazy_false_v<Fp>, "unknown GateImpl"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fpを遅延評価したいのでこうしました.nvccのときのみ引っかかるようです.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ありがとうございます
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
消し忘れてました.ありがとうございます.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
GPUでのテストのコンパイルが通らなかったので修正しました(手元でパスすることを確認).
また,実行に時間がかかりすぎることもあり,テストのサイズを若干下げました.