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
{{ message }}
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.
__kernel __attribute__((vec_type_hint(uchar))) void sample_test(__global int *src, __global int *dst)
{
int tid = get_global_id(0);
dst[tid] = src[tid];
}
generated by the OpenCL CTS produces a SPIR-V module with this instruction: OpExecutionMode %entryPoint VecTypeHint 0 when translated with SPIRV-LLVM/build/bin/clang cc1 -emit-spirv -triple spir64-unknown-unknown -cl-std=CL1.2 -include opencl.h -x cl. Zero in the lower 16 bits of the VecTypeHint literal correctly encodes char, but I think the upper 16 should contain a 1 for the vector width. Other type/width combinations from this test seem to be translated correctly.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This kernel:
generated by the OpenCL CTS produces a SPIR-V module with this instruction:
OpExecutionMode %entryPoint VecTypeHint 0
when translated withSPIRV-LLVM/build/bin/clang cc1 -emit-spirv -triple spir64-unknown-unknown -cl-std=CL1.2 -include opencl.h -x cl
. Zero in the lower 16 bits of the VecTypeHint literal correctly encodeschar
, but I think the upper 16 should contain a 1 for the vector width. Other type/width combinations from this test seem to be translated correctly.The text was updated successfully, but these errors were encountered: