SWDEV-401852 - Do not define hipCreateChannelDesc for long types in LP64
Change-Id: I56881a229ea666269d575c6bdfde5081562ec009
This commit is contained in:
@@ -281,6 +281,8 @@ inline hipChannelFormatDesc hipCreateChannelDesc<float4>() {
|
||||
return hipCreateChannelDesc(e, e, e, e, hipChannelFormatKindFloat);
|
||||
}
|
||||
|
||||
#if !defined(__LP64__)
|
||||
|
||||
template <>
|
||||
inline hipChannelFormatDesc hipCreateChannelDesc<unsigned long>() {
|
||||
int e = (int)sizeof(unsigned long) * 8;
|
||||
@@ -342,12 +344,13 @@ inline hipChannelFormatDesc hipCreateChannelDesc<long4>() {
|
||||
int e = (int)sizeof(signed long) * 8;
|
||||
return hipCreateChannelDesc(e, e, e, e, hipChannelFormatKindSigned);
|
||||
}
|
||||
#endif /* !__LP64__ */
|
||||
|
||||
#else
|
||||
|
||||
struct hipChannelFormatDesc hipCreateChannelDesc(int x, int y, int z, int w,
|
||||
enum hipChannelFormatKind f);
|
||||
|
||||
#endif
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif
|
||||
#endif /* !HIP_INCLUDE_HIP_AMD_DETAIL_CHANNEL_DESCRIPTOR_H */
|
||||
|
||||
Verwijs in nieuw issue
Block a user