SWDEV-436233 - fix the cumode in hiprtc

cumode should be active when wgp mode is off

Change-Id: I12f2e55d942ddeb0fb4470de7abc3caff1f430f7


[ROCm/clr commit: 49369f0851]
This commit is contained in:
Jatin Chaudhary authored and Jatin Jaikishan Chaudhary committed 2024-01-02 17:43:32 -05:00
1 parent 4750a76899
commit 937678b4f6
2 file changed
+8 -1

No files matched your search

+5
View File
@@ -2,6 +2,11 @@
Full documentation for HIP is available at [docs.amd.com](https://docs.amd.com/)
## HIP 6.1 (For ROCm 6.1)
### Changed
- HIPRTC now assumes WGP mode for gfx10+. CU mode can be enabled by passing `-mcumode` to the compile options from `hiprtcCompileProgram`.
## (Unreleased) HIP 6.0 (For ROCm 6.0)
### Optimizations
@@ -149,7 +149,9 @@ RTCCompileProgram::RTCCompileProgram(std::string name_) : RTCProgram(name_), fgp
compile_options_.reserve(20); // count of options below
compile_options_.push_back("-O3");
if (GPU_ENABLE_WGP_MODE) compile_options_.push_back("-mcumode");
if (!(GPU_ENABLE_WGP_MODE)) {
compile_options_.push_back("-mcumode");
}
compile_options_.push_back(hipVerOpt);
compile_options_.push_back(hipVerMajor);