SWDEV-302147 - fix __hip_ds_permutef device function to return float
Change-Id: Ie452e90a7f7410401df4a66de468ad850403953c
[ROCm/clr commit: 673c2deed1]
This commit is contained in:
committato da
Maneesh Gupta
parent
b36803746b
commit
e7a40bf6f6
@@ -283,9 +283,9 @@ __device__ static inline unsigned __hip_ds_permute(int index, unsigned src) {
|
||||
}
|
||||
|
||||
__device__ static inline float __hip_ds_permutef(int index, float src) {
|
||||
union { int i; unsigned u; float f; } tmp; tmp.u = src;
|
||||
union { int i; unsigned u; float f; } tmp; tmp.f = src;
|
||||
tmp.i = __builtin_amdgcn_ds_permute(index, tmp.i);
|
||||
return tmp.u;
|
||||
return tmp.f;
|
||||
}
|
||||
|
||||
#define __hip_ds_swizzle(src, pattern) __hip_ds_swizzle_N<(pattern)>((src))
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user