Questions tagged [spir]

This tag is for the old SPIR; DO NOT USE THIS TAG FOR SPIR-V. Use the "spir-v" for that.

SPIR: Standard Portable Intermediate Representation

SPIR is a mapping from OpenCL C programming onto LLVM IR.

SPIR is a portable, non-source representation for devices programs. It enables application developers to avoid shipping kernel source and to manage the proliferation of devices and drivers from multiple vendors. SPIR enables the consumption of code from third party compiler front-ends for alternative languages.

The SPIR is developed and published by the Khronos Group.

6 questions
1
vote
1 answer

Is there way to force SPIR-V assembly function to accept both Private and Function storage class arrays?

I am in the process of writing a binary processing module for SPIR-V shaders to fix alignment issues with float4x3[6] matrices because of driver bugs. Right now i have: injected necessary appropriate OpTypes and OpTypePointers. processed the binary…
wild-ptr
  • 100
  • 6
1
vote
1 answer

SYCL exception caught: Error: [ComputeCpp:RT0101] Failed to create kernel ((Kernel Name: SYCL_class_multiply))

I cloned https://github.com/codeplaysoftware/computecpp-sdk.git and modified the computecpp-sdk/samples/accessors/accessors.cpp file. I just added std::cout << "SYCL exception caught: " << e.get_cl_code() << '\n';. See the fully modified…
Akhilesh
  • 1,024
  • 1
  • 9
  • 26
1
vote
0 answers

OpenCL SPIR binary build is very slow on Intel Skylake GPU

I've have a number of OpenCL kernels that are compiled into SPIR binaries. I understand that: Additional time is required to build a program from a SPIR binary as opposed to building a program from an Intermediate Binary, since additional…
kenba
  • 4,303
  • 1
  • 23
  • 40
0
votes
1 answer

Unable to create kernel from SPIR-file in OpenCL

I'm trying to compile a kernel written using Clang cl-std=clc++2021. The clang compilation of the kernel runs fine: clang --target=spirv32 -Xclang -no-opaque-pointers -cl-std=clc++2021 ERK.cpp -o ERK.spv My kernel code implements an explicit…
Jonas Hjulstad
  • 395
  • 1
  • 8
0
votes
1 answer

Load SPIR binary with clBuildProgram on Windows

I am trying to load a SPIR binary i created with clang+llvm 6.0.1. Created a few different files with : clang -target spir-unknown-unknown -cl-std=CL1.2 -c -emit-llvm -Xclang -finclude-default-header OCLkernel.cl clang -target amdgcn-amd-amdhsa…
DasWas
  • 1
  • 1
0
votes
0 answers

barrier(CLK_LOCAL_MEM_FENCE) weird deadlock in kernel's local array when reduction

The code run well by clCreateProgramWithSource, BUT dealock by clCreateProgramWithBinary. The size of work group is (8,8), I reproduce the deadlock on Intel Graphics win8.1+ HD4600/530 and win10+HD630. local int SumAlpha[16*16/4]; int index =…
charlie
  • 65
  • 5