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

Updated NVVM to support Cuda SDK v8. #1187

Merged
merged 2 commits into from
Apr 9, 2024
Merged

Updated NVVM to support Cuda SDK v8. #1187

merged 2 commits into from
Apr 9, 2024

Conversation

MoFtZ
Copy link
Collaborator

@MoFtZ MoFtZ commented Apr 4, 2024

Extracted from #1148.

When LibDevice support was added in #707, it was targeting Cuda SDK v11.

In Cuda SDK v8, there is a conflict in searching for nvvm*.dll because the folder contains nvvm64_31_0.dll and nvvm32_31_0.dll. Updated to use nvvm64*.dll, since we only support 64-bit Cuda in ILGPU.

In addition, Cuda SDK v8 does not have an implementation of nvvmLazyAddModuleToProgram - this was added in v9. Added a fallback to use the older, non-lazy nvvmAddModuleToProgram.

@m4rs-mt m4rs-mt added this to the v2.0 milestone Apr 9, 2024
@m4rs-mt m4rs-mt added the bug label Apr 9, 2024
@MoFtZ MoFtZ merged commit 15b2c68 into m4rs-mt:master Apr 9, 2024
51 checks passed
@MoFtZ MoFtZ deleted the bug/nvvm branch April 9, 2024 10:44
@MoFtZ MoFtZ modified the milestones: v2.0, v1.5.2 Apr 18, 2024
MoFtZ added a commit to MoFtZ/ILGPU that referenced this pull request Apr 18, 2024
# Conflicts:
#	Src/ILGPU/Context.Builder.cs
MoFtZ added a commit to MoFtZ/ILGPU that referenced this pull request Apr 18, 2024
# Conflicts:
#	Src/ILGPU/Context.Builder.cs
MoFtZ added a commit to MoFtZ/ILGPU that referenced this pull request Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants