diff options
author | Andrzej Janik <[email protected]> | 2024-04-29 13:06:18 +0000 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2024-04-29 13:06:18 +0000 |
commit | f589b100653855eddaec6e979646220c19b26245 (patch) | |
tree | c94cdf65ede0bfb3f8d13ed835de864e7468e65f | |
parent | 995bc951745db30e39a1ff0c909f9a95b12c4ec7 (diff) | |
download | ZLUDA-f589b100653855eddaec6e979646220c19b26245.tar.gz ZLUDA-f589b100653855eddaec6e979646220c19b26245.zip |
Correctly report emulated wave32 CUDA devicewave32_report_fix
-rw-r--r-- | xtask/src/main.rs | 2 | ||||
-rw-r--r-- | zluda/src/impl/device.rs | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs index d5e0cf8..3f1f224 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -322,7 +322,7 @@ mod os { } } - pub fn zip(workspace: Workspace) -> i32 { + pub(crate) fn zip(workspace: Workspace) -> i32 { let mut target_file = workspace.target_directory.clone(); target_file.push("zluda.tar.gz"); let gz_file = File::create(target_file).unwrap(); diff --git a/zluda/src/impl/device.rs b/zluda/src/impl/device.rs index c7e8190..b7dd0f5 100644 --- a/zluda/src/impl/device.rs +++ b/zluda/src/impl/device.rs @@ -109,6 +109,10 @@ pub(crate) unsafe fn get_attribute( return Err(CUresult::CUDA_ERROR_INVALID_VALUE); } let hip_attrib = match attrib { + CUdevice_attribute::CU_DEVICE_ATTRIBUTE_WARP_SIZE => { + *pi = 32; + return Ok(()); + } CUdevice_attribute::CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT => { *pi = 1; return Ok(()); |