Skip to content

Windows: Use is_versioned = true consistently in both Comgr::LoadLib paths. - #243

Closed
rocm-devops wants to merge 1 commit into
amd-stagingfrom
zichguan/comgr-versioned
Closed

rocm-devops wants to merge 1 commit into
amd-stagingfrom
zichguan/comgr-versioned

Conversation

@rocm-devops

Copy link
Copy Markdown
Contributor

Prior to this, RTCProgram was using is_version = true and device initialization was using false. On Windows, this was causing us to attempt to load amd_comgr_3.dll at device load and amd_comgr0605.dll for RTC programs. Obviously, there is only one DLL and it must be used consistently.

See #162

@rocm-devops

Copy link
Copy Markdown
Contributor Author

I don't think this is correct. On Windows, hipRTC uses the versioned comgr provided by the HIP SDK (bundled with the app) for bitcode linking.
But the HIP runtime will still use the non-versioned one provided by driver installation.

@rocm-devops

Copy link
Copy Markdown
Contributor Author

Quoting Stella's response who authored the patch

hipsdk is actually not the primary windows build system anymore. We should figure out how to support it, but the primary build system that is being used for shipping ROCm on windows is https://github.com/ROCm/TheRock -- and that lays the files out like Linux does, without the driver/app split. We should figure out how to support hipsdk, but we cannot block OSS patches to a proprietary part of the stack that can only be built at AMD.

(we've been going through and stripping out all cases where the assumption was made that WINDOWS = hipsdk)

@rocm-devops

Copy link
Copy Markdown
Contributor Author

Imported to ROCm/rocm-systems

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