Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

Generating a bad OpExecutionModel #237

Open
aarongreig opened this issue Jun 4, 2019 · 0 comments
Open

Generating a bad OpExecutionModel #237

aarongreig opened this issue Jun 4, 2019 · 0 comments

Comments

@aarongreig
Copy link

This kernel:

__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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant