-
Notifications
You must be signed in to change notification settings - Fork 768
[SYCL][Ext][Bindless] Initial implementation of image spirv builtins on HIP #16439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9cb5465
[SYCL][Ext][Bindless] Initial implementation of image spirv builtins …
GeorgeWeb e83ea79
Split image.cl into image, image_array and image_common
GeorgeWeb 729dd32
Fix and cleanup some tests
GeorgeWeb c90f064
Apply a few test fixes due to changes lost on rebase
GeorgeWeb f842fea
Merge branch 'sycl' into georgi/bindless-hip
JackAKirk 2f2ff6e
Diagnose aspect failure.
JackAKirk b737bfa
use run-unfiltered-devices to fix tests.
JackAKirk 3207b6d
Try build-and-run-mode
JackAKirk 203d1e8
Fix broken SPIR cubemap compilation
JackAKirk f67dd1c
use build-and-run-mode sampled_cubemap.cpp
JackAKirk d78fdfe
Fix comment typo
JackAKirk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
525 changes: 525 additions & 0 deletions
525
libclc/libspirv/lib/amdgcn-amdhsa/images/image_array.cl
Large diffs are not rendered by default.
Oops, something went wrong.
159 changes: 159 additions & 0 deletions
159
libclc/libspirv/lib/amdgcn-amdhsa/images/image_common.cl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
#include "image_common.h" | ||
|
||
#ifdef cl_khr_fp16 | ||
#pragma OPENCL EXTENSION cl_khr_fp16 : enable | ||
#endif | ||
|
||
// From | ||
// https://github.com/ROCm/clr/tree/amd-staging/hipamd/include/hip/amd_detail/texture_fetch_functions.h | ||
_CLC_CONST_AS const unsigned int SAMPLER_OBJECT_OFFSET_DWORD = 12; | ||
|
||
// Using the builtin as_type() and as_typen() functions to reinterpret types. | ||
// The restriction being is that element "type"s need to be of the same size. | ||
#define _CLC_DEFINE_BUILTIN_CAST_VEC4_TO_VEC3(vec4_elem_t, to_t) \ | ||
_CLC_DEF to_t##3 __clc_cast_from_##vec4_elem_t##4_to_##to_t##3( \ | ||
vec4_elem_t##4 from) { \ | ||
vec4_elem_t##3 casted = as_##vec4_elem_t##3(from); \ | ||
return as_##to_t##3(casted); \ | ||
} | ||
#define _CLC_DEFINE_BUILTIN_CAST_VEC4_TO_VEC2(vec4_elem_t, to_t) \ | ||
_CLC_DEF to_t##2 __clc_cast_from_##vec4_elem_t##4_to_##to_t##2( \ | ||
vec4_elem_t##4 from) { \ | ||
vec4_elem_t##4 casted = as_##vec4_elem_t##4(from); \ | ||
return as_##to_t##2((vec4_elem_t##2)(casted.x, casted.y)); \ | ||
} | ||
#define _CLC_DEFINE_BUILTIN_CAST_VEC4_TO_SCALAR(vec4_elem_t, to_t) \ | ||
_CLC_DEF to_t __clc_cast_from_##vec4_elem_t##4_to_##to_t( \ | ||
vec4_elem_t##4 from) { \ | ||
vec4_elem_t##4 casted = as_##vec4_elem_t##4(from); \ | ||
return as_##to_t(casted.x); \ | ||
} | ||
#define _CLC_DEFINE_BUILTIN_CAST_VEC3_TO_VEC4(from_t, vec4_elem_t) \ | ||
_CLC_DEF vec4_elem_t##4 __clc_cast_from_##from_t##3_to_##vec4_elem_t##4( \ | ||
from_t##3 from) { \ | ||
vec4_elem_t##3 casted = as_##vec4_elem_t##3(from); \ | ||
return as_##vec4_elem_t##4(casted); \ | ||
} | ||
#define _CLC_DEFINE_BUILTIN_CAST_VEC2_TO_VEC4(from_t, vec4_elem_t) \ | ||
_CLC_DEF vec4_elem_t##4 __clc_cast_from_##from_t##2_to_##vec4_elem_t##4( \ | ||
from_t##2 from) { \ | ||
vec4_elem_t##2 casted = as_##vec4_elem_t##2(from); \ | ||
return (vec4_elem_t##4)(casted.x, casted.y, 0, 0); \ | ||
} | ||
#define _CLC_DEFINE_BUILTIN_CAST_SCALAR_TO_VEC4(from_t, vec4_elem_t) \ | ||
_CLC_DEF vec4_elem_t##4 __clc_cast_from_##from_t##_to_##vec4_elem_t##4( \ | ||
from_t from) { \ | ||
vec4_elem_t casted = as_##vec4_elem_t(from); \ | ||
return (vec4_elem_t##4)(casted, 0, 0, 0); \ | ||
} | ||
|
||
// Generic casts between builtin types. | ||
#define _CLC_DEFINE_CAST_VEC4(vec4_elem_t, to_t) \ | ||
_CLC_DEF to_t##4 __clc_cast_from_##vec4_elem_t##4_to_##to_t##4( \ | ||
vec4_elem_t##4 from) { \ | ||
return (to_t##4)(from.x, from.y, from.z, from.w); \ | ||
} | ||
#define _CLC_DEFINE_CAST_VEC4_TO_VEC3(vec4_elem_t, to_t) \ | ||
_CLC_DEF to_t##3 __clc_cast_from_##vec4_elem_t##4_to_##to_t##3( \ | ||
vec4_elem_t##4 from) { \ | ||
return (to_t##3)(from.x, from.y, from.z); \ | ||
} | ||
#define _CLC_DEFINE_CAST_VEC4_TO_VEC2(vec4_elem_t, to_t) \ | ||
_CLC_DEF to_t##2 __clc_cast_from_##vec4_elem_t##4_to_##to_t##2( \ | ||
vec4_elem_t##4 from) { \ | ||
return (to_t##2)(from.x, from.y); \ | ||
} | ||
#define _CLC_DEFINE_CAST_VEC4_TO_SCALAR(vec4_elem_t, to_t) \ | ||
_CLC_DEF to_t __clc_cast_from_##vec4_elem_t##4_to_##to_t( \ | ||
vec4_elem_t##4 from) { \ | ||
return (to_t)from.x; \ | ||
} | ||
#define _CLC_DEFINE_CAST_VEC3_TO_VEC4(from_t, vec4_elem_t) \ | ||
_CLC_DEF vec4_elem_t##4 __clc_cast_from_##from_t##3_to_##vec4_elem_t##4( \ | ||
from_t##3 from) { \ | ||
return (vec4_elem_t##4)(from.x, from.y, from.z, 0); \ | ||
} | ||
#define _CLC_DEFINE_CAST_VEC2_TO_VEC4(from_t, vec4_elem_t) \ | ||
_CLC_DEF vec4_elem_t##4 __clc_cast_from_##from_t##2_to_##vec4_elem_t##4( \ | ||
from_t##2 from) { \ | ||
return (vec4_elem_t##4)(from.x, from.y, 0, 0); \ | ||
} | ||
#define _CLC_DEFINE_CAST_SCALAR_TO_VEC4(from_t, vec4_elem_t) \ | ||
_CLC_DEF vec4_elem_t##4 __clc_cast_from_##from_t##_to_##vec4_elem_t##4( \ | ||
from_t from) { \ | ||
return (vec4_elem_t##4)(from, 0, 0, 0); \ | ||
} | ||
|
||
// Helpers to extract N channel(s) from a four-channel (RGBA/XYZW) color type. | ||
|
||
#define _CLC_DEFINE_EXTRACT_SAME_SIZE_COLOR_HELPERS(from_t, to_t) \ | ||
_CLC_DEFINE_CAST_VEC4(from_t, to_t) \ | ||
_CLC_DEFINE_BUILTIN_CAST_VEC4_TO_VEC3(from_t, to_t) \ | ||
_CLC_DEFINE_BUILTIN_CAST_VEC4_TO_VEC2(from_t, to_t) \ | ||
_CLC_DEFINE_BUILTIN_CAST_VEC4_TO_SCALAR(from_t, to_t) \ | ||
_CLC_DEFINE_BUILTIN_CAST_VEC2_TO_VEC4(from_t, to_t) \ | ||
_CLC_DEFINE_BUILTIN_CAST_VEC3_TO_VEC4(from_t, to_t) \ | ||
_CLC_DEFINE_BUILTIN_CAST_SCALAR_TO_VEC4(from_t, to_t) | ||
|
||
#define _CLC_DEFINE_EXTRACT_COLOR_HELPERS(from_t, to_t) \ | ||
_CLC_DEFINE_CAST_VEC4(from_t, to_t) \ | ||
_CLC_DEFINE_CAST_VEC4_TO_VEC3(from_t, to_t) \ | ||
_CLC_DEFINE_CAST_VEC4_TO_VEC2(from_t, to_t) \ | ||
_CLC_DEFINE_CAST_VEC4_TO_SCALAR(from_t, to_t) \ | ||
_CLC_DEFINE_CAST_VEC2_TO_VEC4(from_t, to_t) \ | ||
_CLC_DEFINE_CAST_VEC3_TO_VEC4(from_t, to_t) \ | ||
_CLC_DEFINE_CAST_SCALAR_TO_VEC4(from_t, to_t) | ||
|
||
// Define casts between supported builtin types for image color | ||
|
||
_CLC_DEFINE_EXTRACT_SAME_SIZE_COLOR_HELPERS(float, float) | ||
_CLC_DEFINE_EXTRACT_SAME_SIZE_COLOR_HELPERS(float, int) | ||
_CLC_DEFINE_EXTRACT_SAME_SIZE_COLOR_HELPERS(int, float) | ||
_CLC_DEFINE_EXTRACT_SAME_SIZE_COLOR_HELPERS(float, uint) | ||
_CLC_DEFINE_EXTRACT_SAME_SIZE_COLOR_HELPERS(uint, float) | ||
#ifdef cl_khr_fp16 | ||
_CLC_DEFINE_EXTRACT_SAME_SIZE_COLOR_HELPERS(half, half) | ||
_CLC_DEFINE_EXTRACT_SAME_SIZE_COLOR_HELPERS(half, short) | ||
_CLC_DEFINE_EXTRACT_SAME_SIZE_COLOR_HELPERS(short, half) | ||
_CLC_DEFINE_EXTRACT_SAME_SIZE_COLOR_HELPERS(half, ushort) | ||
_CLC_DEFINE_EXTRACT_SAME_SIZE_COLOR_HELPERS(ushort, half) | ||
#endif | ||
|
||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(float, short) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(short, float) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(float, ushort) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(ushort, float) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(float, char) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(char, float) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(float, uchar) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(uchar, float) | ||
#ifdef cl_khr_fp16 | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(float, half) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(half, float) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(half, int) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(int, half) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(half, uint) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(uint, half) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(half, char) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(char, half) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(half, uchar) | ||
_CLC_DEFINE_EXTRACT_COLOR_HELPERS(uchar, half) | ||
#endif | ||
|
||
#undef _CLC_DEFINE_EXTRACT_COLOR_HELPERS | ||
#undef _CLC_DEFINE_EXTRACT_SAME_SIZE_COLOR_HELPERS | ||
|
||
#undef _CLC_DEFINE_CAST_SCALAR_TO_VEC4 | ||
#undef _CLC_DEFINE_CAST_VEC2_TO_VEC4 | ||
#undef _CLC_DEFINE_CAST_VEC3_TO_VEC4 | ||
#undef _CLC_DEFINE_CAST_VEC4_TO_SCALAR | ||
#undef _CLC_DEFINE_CAST_VEC4_TO_VEC3 | ||
#undef _CLC_DEFINE_CAST_VEC4_TO_VEC2 | ||
#undef _CLC_DEFINE_CAST_VEC4 | ||
#undef _CLC_DEFINE_BUILTIN_CAST_SCALAR_TO_VEC4 | ||
#undef _CLC_DEFINE_BUILTIN_CAST_VEC2_TO_VEC4 | ||
#undef _CLC_DEFINE_BUILTIN_VEC3_TO_VEC4 | ||
#undef _CLC_DEFINE_BUILTIN_VEC4_TO_SCALAR | ||
#undef _CLC_DEFINE_BUILTIN_VEC4_TO_VEC3 | ||
#undef _CLC_DEFINE_BUILTIN_VEC4_TO_VEC2 | ||
#undef _CLC_DEFINE_BUILTIN_VEC4 |
164 changes: 164 additions & 0 deletions
164
libclc/libspirv/lib/amdgcn-amdhsa/images/image_common.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
#ifndef CLC_SPIRV_IMAGE_COMMON | ||
#define CLC_SPIRV_IMAGE_COMMON | ||
|
||
#include <clc/clc.h> | ||
|
||
#ifdef cl_khr_fp16 | ||
#pragma OPENCL EXTENSION cl_khr_fp16 : enable | ||
#endif | ||
|
||
#ifdef _WIN32 | ||
#define _CLC_MANGLE_FUNC_IMG_HANDLE(namelength, name, prefix, postfix) \ | ||
_Z##namelength##name##prefix##y##postfix | ||
#else | ||
#define _CLC_MANGLE_FUNC_IMG_HANDLE(namelength, name, prefix, postfix) \ | ||
_Z##namelength##name##prefix##m##postfix | ||
#endif | ||
|
||
// The ockl functions/builtins we link against from the ROCm device libs expect | ||
// resources to reside in constant address space. | ||
#if __clang_major__ >= 8 | ||
#define _CLC_CONST_AS __constant | ||
#elif __clang_major__ >= 7 | ||
#define _CLC_CONST_AS __attribute__((address_space(4))) | ||
#else | ||
#define _CLC_CONST_AS __attribute__((address_space(2))) | ||
#endif | ||
|
||
// From | ||
// https://github.com/ROCm/clr/tree/amd-staging/hipamd/include/hip/amd_detail/texture_fetch_functions.h | ||
// defined in "image_common.cl" | ||
extern _CLC_CONST_AS const unsigned int SAMPLER_OBJECT_OFFSET_DWORD; | ||
|
||
// Helpers for casting between two builitin vector types and/or scalar types. | ||
|
||
// Using the builtin as_type() and as_typen() functions to reinterpret types. | ||
// The restriction being is that element "type"s need to be of the same size. | ||
#define _CLC_DECLARE_BUILTIN_CAST_VEC4_TO_VEC3(vec4_elem_t, to_t) \ | ||
_CLC_DECL to_t##3 __clc_cast_from_##vec4_elem_t##4_to_##to_t##3( \ | ||
vec4_elem_t##4 from); | ||
|
||
#define _CLC_DECLARE_BUILTIN_CAST_VEC4_TO_VEC2(vec4_elem_t, to_t) \ | ||
_CLC_DECL to_t##2 __clc_cast_from_##vec4_elem_t##4_to_##to_t##2( \ | ||
vec4_elem_t##4 from); | ||
|
||
#define _CLC_DECLARE_BUILTIN_CAST_VEC4_TO_SCALAR(vec4_elem_t, to_t) \ | ||
_CLC_DECL to_t __clc_cast_from_##vec4_elem_t##4_to_##to_t( \ | ||
vec4_elem_t##4 from); | ||
|
||
#define _CLC_DECLARE_BUILTIN_CAST_VEC3_TO_VEC4(from_t, vec4_elem_t) \ | ||
_CLC_DECL vec4_elem_t##4 __clc_cast_from_##from_t##3_to_##vec4_elem_t##4( \ | ||
from_t##3 from); | ||
|
||
#define _CLC_DECLARE_BUILTIN_CAST_VEC2_TO_VEC4(from_t, vec4_elem_t) \ | ||
_CLC_DECL vec4_elem_t##4 __clc_cast_from_##from_t##2_to_##vec4_elem_t##4( \ | ||
from_t##2 from); | ||
|
||
#define _CLC_DECLARE_BUILTIN_CAST_SCALAR_TO_VEC4(from_t, vec4_elem_t) \ | ||
_CLC_DECL vec4_elem_t##4 __clc_cast_from_##from_t##_to_##vec4_elem_t##4( \ | ||
from_t from); | ||
|
||
// Generic casts between builtin types. | ||
#define _CLC_DECLARE_CAST_VEC4(vec4_elem_t, to_t) \ | ||
_CLC_DECL to_t##4 __clc_cast_from_##vec4_elem_t##4_to_##to_t##4( \ | ||
vec4_elem_t##4 from); | ||
|
||
#define _CLC_DECLARE_CAST_VEC4_TO_VEC3(vec4_elem_t, to_t) \ | ||
_CLC_DECL to_t##3 __clc_cast_from_##vec4_elem_t##4_to_##to_t##3( \ | ||
vec4_elem_t##4 from); | ||
|
||
#define _CLC_DECLARE_CAST_VEC4_TO_VEC2(vec4_elem_t, to_t) \ | ||
_CLC_DECL to_t##2 __clc_cast_from_##vec4_elem_t##4_to_##to_t##2( \ | ||
vec4_elem_t##4 from); | ||
|
||
#define _CLC_DECLARE_CAST_VEC4_TO_SCALAR(vec4_elem_t, to_t) \ | ||
_CLC_DECL to_t __clc_cast_from_##vec4_elem_t##4_to_##to_t( \ | ||
vec4_elem_t##4 from); | ||
|
||
#define _CLC_DECLARE_CAST_VEC3_TO_VEC4(from_t, vec4_elem_t) \ | ||
_CLC_DECL vec4_elem_t##4 __clc_cast_from_##from_t##3_to_##vec4_elem_t##4( \ | ||
from_t##3 from); | ||
|
||
#define _CLC_DECLARE_CAST_VEC2_TO_VEC4(from_t, vec4_elem_t) \ | ||
_CLC_DECL vec4_elem_t##4 __clc_cast_from_##from_t##2_to_##vec4_elem_t##4( \ | ||
from_t##2 from); | ||
|
||
#define _CLC_DECLARE_CAST_SCALAR_TO_VEC4(from_t, vec4_elem_t) \ | ||
_CLC_DECL vec4_elem_t##4 __clc_cast_from_##from_t##_to_##vec4_elem_t##4( \ | ||
from_t from); | ||
|
||
// Helpers to extract N channel(s) from a four-channel (RGBA/XYZW) color type. | ||
|
||
#define _CLC_DECLARE_EXTRACT_SAME_SIZE_COLOR_HELPERS(from_t, to_t) \ | ||
_CLC_DECLARE_CAST_VEC4(from_t, to_t) \ | ||
_CLC_DECLARE_BUILTIN_CAST_VEC4_TO_VEC3(from_t, to_t) \ | ||
_CLC_DECLARE_BUILTIN_CAST_VEC4_TO_VEC2(from_t, to_t) \ | ||
_CLC_DECLARE_BUILTIN_CAST_VEC4_TO_SCALAR(from_t, to_t) \ | ||
_CLC_DECLARE_BUILTIN_CAST_VEC2_TO_VEC4(from_t, to_t) \ | ||
_CLC_DECLARE_BUILTIN_CAST_VEC3_TO_VEC4(from_t, to_t) \ | ||
_CLC_DECLARE_BUILTIN_CAST_SCALAR_TO_VEC4(from_t, to_t) | ||
|
||
#define _CLC_DECLARE_EXTRACT_COLOR_HELPERS(from_t, to_t) \ | ||
_CLC_DECLARE_CAST_VEC4(from_t, to_t) \ | ||
_CLC_DECLARE_CAST_VEC4_TO_VEC3(from_t, to_t) \ | ||
_CLC_DECLARE_CAST_VEC4_TO_VEC2(from_t, to_t) \ | ||
_CLC_DECLARE_CAST_VEC4_TO_SCALAR(from_t, to_t) \ | ||
_CLC_DECLARE_CAST_VEC2_TO_VEC4(from_t, to_t) \ | ||
_CLC_DECLARE_CAST_VEC3_TO_VEC4(from_t, to_t) \ | ||
_CLC_DECLARE_CAST_SCALAR_TO_VEC4(from_t, to_t) | ||
|
||
// Define casts between supported builtin types for image color | ||
|
||
_CLC_DECLARE_EXTRACT_SAME_SIZE_COLOR_HELPERS(float, float) | ||
_CLC_DECLARE_EXTRACT_SAME_SIZE_COLOR_HELPERS(float, int) | ||
_CLC_DECLARE_EXTRACT_SAME_SIZE_COLOR_HELPERS(int, float) | ||
_CLC_DECLARE_EXTRACT_SAME_SIZE_COLOR_HELPERS(float, uint) | ||
_CLC_DECLARE_EXTRACT_SAME_SIZE_COLOR_HELPERS(uint, float) | ||
#ifdef cl_khr_fp16 | ||
_CLC_DECLARE_EXTRACT_SAME_SIZE_COLOR_HELPERS(half, half) | ||
_CLC_DECLARE_EXTRACT_SAME_SIZE_COLOR_HELPERS(half, short) | ||
_CLC_DECLARE_EXTRACT_SAME_SIZE_COLOR_HELPERS(short, half) | ||
_CLC_DECLARE_EXTRACT_SAME_SIZE_COLOR_HELPERS(half, ushort) | ||
_CLC_DECLARE_EXTRACT_SAME_SIZE_COLOR_HELPERS(ushort, half) | ||
#endif | ||
|
||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(half, float) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(float, short) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(short, float) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(float, ushort) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(ushort, float) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(float, char) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(char, float) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(float, uchar) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(uchar, float) | ||
#ifdef cl_khr_fp16 | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(float, half) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(half, int) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(int, half) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(half, uint) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(uint, half) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(half, char) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(char, half) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(half, uchar) | ||
_CLC_DECLARE_EXTRACT_COLOR_HELPERS(uchar, half) | ||
#endif | ||
|
||
#undef _CLC_DECLARE_EXTRACT_COLOR_HELPERS | ||
#undef _CLC_DECLARE_EXTRACT_SAME_SIZE_COLOR_HELPERS | ||
|
||
#undef _CLC_DECLARE_CAST_SCALAR_TO_VEC4 | ||
#undef _CLC_DECLARE_CAST_VEC2_TO_VEC4 | ||
#undef _CLC_DECLARE_CAST_VEC3_TO_VEC4 | ||
#undef _CLC_DECLARE_CAST_VEC4_TO_SCALAR | ||
#undef _CLC_DECLARE_CAST_VEC4_TO_VEC3 | ||
#undef _CLC_DECLARE_CAST_VEC4_TO_VEC2 | ||
#undef _CLC_DECLARE_CAST_VEC4 | ||
#undef _CLC_DECLARE_BUILTIN_CAST_SCALAR_TO_VEC4 | ||
#undef _CLC_DECLARE_BUILTIN_CAST_VEC2_TO_VEC4 | ||
#undef _CLC_DECLARE_BUILTIN_VEC3_TO_VEC4 | ||
#undef _CLC_DECLARE_BUILTIN_VEC4_TO_SCALAR | ||
#undef _CLC_DECLARE_BUILTIN_VEC4_TO_VEC3 | ||
#undef _CLC_DECLARE_BUILTIN_VEC4_TO_VEC2 | ||
#undef _CLC_DECLARE_BUILTIN_VEC4 | ||
|
||
#endif // CLC_SPIRV_IMAGE_COMMON |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# commit 87d4a32666f2950e7cfa016ff181311c2e0ebbca | ||
# Merge: f07688db 8e4b5c3d | ||
# commit 0e6adfb64039d3dd5fc8363245fcac60cbdcb8bd | ||
# Merge: 42044a83 d0c87169 | ||
# Author: Kenneth Benzie (Benie) <[email protected]> | ||
# Date: Tue Feb 4 15:45:58 2025 +0000 | ||
# Merge pull request #2480 from ldorau/Add_UMF_CUDA_provider | ||
# Use UMF CUDA memory provider in UR | ||
set(UNIFIED_RUNTIME_TAG 87d4a32666f2950e7cfa016ff181311c2e0ebbca) | ||
# Date: Wed Feb 5 15:39:15 2025 +0000 | ||
# Merge pull request #2496 from GeorgeWeb/georgi/bindless-hip | ||
# [UR][Bindless] Initial implementation of bindless images for HIP | ||
set(UNIFIED_RUNTIME_TAG 0e6adfb64039d3dd5fc8363245fcac60cbdcb8bd) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo:
builitin
->builtin
(happens to me all the time)