Skip to content
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

Merged
merged 4 commits into from
Jan 10, 2025
Merged

GPUでのテスト修正 #194

merged 4 commits into from
Jan 10, 2025

Conversation

gandalfr-KY
Copy link
Contributor

GPUでのテストのコンパイルが通らなかったので修正しました(手元でパスすることを確認).
また,実行に時間がかかりすぎることもあり,テストのサイズを若干下げました.

Comment on lines +138 to 140
if (SCALUQ_USE_CUDA)
target_compile_options(scaluq PUBLIC $<IF:$<CONFIG:Debug>,-O0 -g,-O3>)
else()
Copy link
Contributor Author

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");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fpを遅延評価したいのでこうしました.nvccのときのみ引っかかるようです.

Copy link
Contributor

@KowerKoint KowerKoint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
ありがとうございます

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

消し忘れてました.ありがとうございます.

@gandalfr-KY gandalfr-KY merged commit 1b3320b into main Jan 10, 2025
26 checks passed
Copy link
Contributor

@Glacialte Glacialte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gandalfr-KY gandalfr-KY deleted the fix-gpu-test branch January 10, 2025 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants