You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently OpGenericCastToPtr/OpPtrCastToGeneric instructions provides casting from/to a pointer in Generic storage class to/from a pointer in Workgroup, CrossWorkgroup or Function storage classes.
In intel/llvm#1840 we added 2 more storage classes: DeviceOnlyINTEL/HostOnlyINTEL to represent global memory that can be allocated on device or host appropriately. Also we want to add in SPIR-V a possibility to cast from CrossWorkgroup pointer to DeviceOnlyINTEL/HostOnlyINTEL pointer and vice versa. There are basically two options how it can be achieved:
Add new instructions for that;
Expand OpGenericCastToPtr/OpPtrCastToGeneric potential in casting (under the extension).
Hi,
Currently OpGenericCastToPtr/OpPtrCastToGeneric instructions provides casting from/to a pointer in Generic storage class to/from a pointer in Workgroup, CrossWorkgroup or Function storage classes.
In intel/llvm#1840 we added 2 more storage classes: DeviceOnlyINTEL/HostOnlyINTEL to represent global memory that can be allocated on device or host appropriately. Also we want to add in SPIR-V a possibility to cast from CrossWorkgroup pointer to DeviceOnlyINTEL/HostOnlyINTEL pointer and vice versa. There are basically two options how it can be achieved:
The second option is slightly preferable for us, but taking in the account, that it will lead to addition of vendor customization in https://github.com/KhronosGroup/SPIRV-Tools which way is preferable for the community?
Thank you in advance.
The text was updated successfully, but these errors were encountered: