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

Computes a SHA256 hash per device compilation unit and uses for hashing #72

Closed
wants to merge 5 commits into from

Conversation

koparasy
Copy link
Collaborator

No description provided.

@koparasy
Copy link
Collaborator Author

@ggeorgakoudis Don't wast time in looking in the rest of the PR, it is a draft and I will work it out later. Let me know about the comment though.

@koparasy koparasy force-pushed the bugfix/device-cache branch from 241dcfe to 8764ee1 Compare December 18, 2024 19:51
@koparasy koparasy force-pushed the bugfix/device-cache branch from 4bb6fc8 to a8ca0b1 Compare December 18, 2024 21:10
@koparasy koparasy force-pushed the bugfix/device-cache branch from b9e8c47 to 85208a7 Compare December 18, 2024 23:03
@koparasy koparasy force-pushed the bugfix/device-cache branch from dd44888 to 7d77c58 Compare December 19, 2024 13:53
@koparasy koparasy marked this pull request as ready for review December 19, 2024 13:54
@@ -79,13 +80,18 @@ class JitEngineDeviceCUDA : public JitEngineDevice<JitEngineDeviceCUDA> {
return "llvm.nvvm.read.ptx.sreg.tid.z";
};

static bool HashSection(StringRef sectionName) {
static DenseSet<StringRef> Sections{".nv_fatbin", ".nvFatBinSegment",
"__nv_relfatbin", "__nv_module_id"};
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We only need the nv_fatbin

@koparasy koparasy closed this Jan 16, 2025
@ggeorgakoudis ggeorgakoudis deleted the bugfix/device-cache branch January 16, 2025 17:14
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.

2 participants