Skip to content

Support nvc++ and msvc as nvcc host compilers - #1889

Merged
sylvestre merged 7 commits into
mozilla:mainfrom
robertmaynard:fea/support_nvc++_and_msvc_as_nvcc_host_compilers
Sep 28, 2023
Merged

sylvestre merged 7 commits into
mozilla:mainfrom
robertmaynard:fea/support_nvc++_and_msvc_as_nvcc_host_compilers

Conversation

@robertmaynard

Copy link
Copy Markdown
Collaborator

Continues the work of #1884

Extends the nvcc compiler to understand the unique requirements of using nvc++ or cl.exe ( msvc ) as the host compiler.

Due to the fact that nvc++ pre-processing always has force includes the compiler detection can't presume that the first line of the file will hold the compiler id string. So we instead search for lines starting with a unique starting text.

@sylvestre

Copy link
Copy Markdown
Collaborator

plenty of new tests, nice :)

@robertmaynard

Copy link
Copy Markdown
Collaborator Author

I am currently working on adding nvc and nvc++ as supported compilers ( for C and C++ ) which also requires the changes to compiler type detection.

If needed I can separate the commit that changes those parts of compiler.rs to a new PR if needs a more in-depth review

@codecov-commenter

codecov-commenter commented Sep 25, 2023 •

Copy link
Copy Markdown

Codecov Report

Attention: 142 lines in your changes are missing coverage. Please review.

Comparison is base (ac8c225) 29.88% compared to head (0fb1922) 29.77%.

❗ Current head 0fb1922 differs from pull request most recent head 957bfe8. Consider uploading reports for the commit 957bfe8 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1889      +/-   ##
==========================================
- Coverage   29.88%   29.77%   -0.11%     
==========================================
  Files          49       49              
  Lines       17538    17699     +161     
  Branches     8443     8518      +75     
==========================================
+ Hits         5241     5270      +29     
- Misses       7214     7311      +97     
- Partials     5083     5118      +35     
Files Coverage Δ
src/test/tests.rs 33.33% <0.00%> (ø)
src/compiler/compiler.rs 36.73% <52.63%> (+0.57%) ⬆️
src/compiler/nvcc.rs 41.17% <34.00%> (-1.37%) ⬇️
tests/system.rs 26.16% <10.00%> (-4.84%) ⬇️

... and 11 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread src/compiler/compiler.rs Resolved
Comment thread src/compiler/nvcc.rs Resolved
@robertmaynard
robertmaynard force-pushed the fea/support_nvc++_and_msvc_as_nvcc_host_compilers branch from a3282ef to 0fb1922 Compare September 25, 2023 18:31
@miscco

miscco commented Sep 27, 2023

Copy link
Copy Markdown

@sylvestre it seems those CI failures are from infrastructure and not this PR.

Can we rerun the failing ones?

@miscco miscco left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

for what its worth, looks good to me

@sylvestre

Copy link
Copy Markdown
Collaborator

@robertmaynard @miscco I guess you are colleagues working on this together, right?

Maybe we should discuss (no agenda but to know each others)
if you are interested, my email is [email protected]

cheers

@sylvestre
sylvestre merged commit 8253364 into mozilla:main Sep 28, 2023
@robertmaynard
robertmaynard deleted the fea/support_nvc++_and_msvc_as_nvcc_host_compilers branch September 28, 2023 16:58
@miscco

miscco commented Sep 28, 2023

Copy link
Copy Markdown

Super happy to talk, sccache is essential for us to be able to run a CI on github PRs for https://github.com/NVIDIA/cccl

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.

4 participants