Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Create NVRTCC, a utility for running tests under NVRTC #494
Create NVRTCC, a utility for running tests under NVRTC #494
Changes from 1 commit
fc98833
3197bee
a5c2e39
3648c64
f9a5101
7484c9d
3f590ea
f8a81ad
6591fce
3e24c96
8814b1b
1fb765f
349858e
0c8a72d
fef2f37
05cd387
e08150f
68e4032
63e57d9
759fac9
33416aa
6bb01fb
7450a64
dd417f5
22a1ca3
bb48b9f
6f055fb
709aeaa
46e5604
636d8b1
265202e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
question: Instead of needing to pass the produced fatbin to
nvrtcc
in order to execute the program, couldn'tnvrtcc
just produce a binary that does this step for you?Basically, it would store the fatbin in the binary, and in the
main()
it would doload_and_run_gpu_code(/*stored fatbin*/)
.That way, nvrtcc would work even more like a regular compiler in that it outputs a normal binary that can be executed just like
./a.out
.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.
This is essentially what the old script did. It produced a binary with the raw test stored inside and compiled it during execution. Every test was recompiled into the same hosting application. It bought us the 'works like a binary thing' but failed for giving us negative testing with .fail.cpp tests.
It might be possible to do this. It would get rid of needing to use the
PrefixExecutor()
for tests. I'll make a PR after this one with the documentation in mind.