diff options
author | Andrzej Janik <[email protected]> | 2024-12-01 03:36:16 +0000 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2024-12-01 03:36:16 +0000 |
commit | 1f1b770a511e4dd9116167bf1b02aae0df07ee3b (patch) | |
tree | 4ebd45adf1f88de1ad7e7507797dac12a7802a48 /ptx/lib | |
parent | 502b0c957e1fb58f5b6df678a26b8758349f8eb4 (diff) | |
download | ZLUDA-cuda-12-4.tar.gz ZLUDA-cuda-12-4.zip |
Fix more missing stuff in the host codecuda-12-4
Diffstat (limited to 'ptx/lib')
-rw-r--r-- | ptx/lib/zluda_ptx_impl.bc | bin | 4624 -> 4816 bytes | |||
-rw-r--r-- | ptx/lib/zluda_ptx_impl.cpp | 8 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ptx/lib/zluda_ptx_impl.bc b/ptx/lib/zluda_ptx_impl.bc Binary files differindex 6651430..4b5a5d8 100644 --- a/ptx/lib/zluda_ptx_impl.bc +++ b/ptx/lib/zluda_ptx_impl.bc 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));
|