aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/lib/zluda_ptx_impl.cpp
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2024-12-02 00:29:57 +0100
committerGitHub <[email protected]>2024-12-02 00:29:57 +0100
commit7a6df9dcbf59edef371e7f63c16c64916ddb0c0b (patch)
tree7800524ba25d38c514f1c769c9c1b665542c5500 /ptx/lib/zluda_ptx_impl.cpp
parent870fed4bb69d919a10822032d65ec20f385df9d7 (diff)
downloadZLUDA-7a6df9dcbf59edef371e7f63c16c64916ddb0c0b.tar.gz
ZLUDA-7a6df9dcbf59edef371e7f63c16c64916ddb0c0b.zip
Fix host code and update to CUDA 12.4 (#299)
Diffstat (limited to 'ptx/lib/zluda_ptx_impl.cpp')
-rw-r--r--ptx/lib/zluda_ptx_impl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ptx/lib/zluda_ptx_impl.cpp b/ptx/lib/zluda_ptx_impl.cpp
index d0ec853..f86a7fd 100644
--- a/ptx/lib/zluda_ptx_impl.cpp
+++ b/ptx/lib/zluda_ptx_impl.cpp
@@ -25,16 +25,16 @@ extern "C"
return (uint32_t)__ockl_get_local_size(member);
}
- size_t __ockl_get_global_id(uint32_t) __device__;
+ size_t __ockl_get_group_id(uint32_t) __device__;
uint32_t FUNC(sreg_ctaid)(uint8_t member)
{
- return (uint32_t)__ockl_get_global_id(member);
+ return (uint32_t)__ockl_get_group_id(member);
}
- size_t __ockl_get_global_size(uint32_t) __device__;
+ size_t __ockl_get_num_groups(uint32_t) __device__;
uint32_t FUNC(sreg_nctaid)(uint8_t member)
{
- return (uint32_t)__ockl_get_global_size(member);
+ return (uint32_t)__ockl_get_num_groups(member);
}
uint32_t __ockl_bfe_u32(uint32_t, uint32_t, uint32_t) __attribute__((device));