Skip to content

Bug-basher - #260

Open
lm-sousa wants to merge 4 commits into
clava-optimizationsfrom
bug-basher
Open

Bug-basher#260
lm-sousa wants to merge 4 commits into
clava-optimizationsfrom
bug-basher

Conversation

@lm-sousa

@lm-sousa lm-sousa commented Sep 7, 2026

Copy link
Copy Markdown
Member

No description provided.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

CUDA's headers select implementations from _MSC_VER. Clava defined
_MSC_VER to 1, forcing the legacy MSVC paths in crt/math_functions.hpp
(int-returning isinf/isnan, glibc-style __signbitl calls) that conflict
with clang's __DEVICE__ declarations. Define a real MSVC version
(1930) plus -D_NATIVE_WCHAR_T_DEFINED (keeps clang's builtin
__stddef_wchar_t.h from typedef'ing wchar_t), -D_LIBCPP_OBJECT_FORMAT_COFF
(clang's CUDA host pass defines __ELF__ on Windows, so libc++ missed the
COFF guard and emitted an aligned_storage<..., 16384> above the 8192-byte
Windows alignment cap) and -D_ALLOW_UNSUPPORTED_LIBCPP (CUDA's
crt/host_defines.h rejects libc++ on x86-64). Drop -fms-compatibility
(emulates pre-VS2015, making char16_t/char32_t non-keywords and breaking
libc++ 18 headers) and the no-op -D_LIBCPP_MSVCRT.

Also exclude Standard.CUDA from the '-std' fallback so passing the CUDA
standard no longer resurrects the rejected '-std=cuda' flag, and give
the CUDA legacy tests a 60s timeout: parsing the builtin CUDA resources
regularly exceeds the 5s vitest default.
The test takes ~14s on macOS runners and has been timing out at the
10s limit in every CI run.
@sonarqubecloud

sonarqubecloud Bot commented Sep 8, 2026

Copy link
Copy Markdown

@lm-sousa

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: bf55cb8a39

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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.

1 participant