Skip to content

Intel: Uniformscaling compilation error #316

Open
@maleadt

Description

@maleadt

After #285, gpuarrays/uniformscaling started to fail on Intel. The reduced SPIR-V:

         %u2 = OpTypeInt 2 0
       %long = OpTypeInt 64 2
     %long_1 = OpConstant %long 1
          %4 = OpTypeFunction %long %long
  %_struct_5 = OpTypeStruct
%_ptr_Function__struct_5 = OpTypePointer Function %_struct_5
  %_struct_7 = OpTypeStruct
%_ptr_Function__struct_7 = OpTypePointer Function %_struct_7
          %9 = OpTypeFunction %_ptr_Function__struct_5 %u2
         %11 = OpFunction %10 None %4
         %12 = OpFunctionParameter %long
         %13 = OpLabel
         %14 = OpIAddCarry %long %long_1 %12
               OpBranch %15
               OpUnreachable
         %15 = OpLabel
         %16 = OpFunction %10 None %9
         %17 = OpFunctionParameter %_ptr_Function__struct_7
         %18 = OpLabel
         %20 = OpInBoundsPtrAccessChain %19 %17 %11
Build error at wip9.c:138:

error: undefined reference to `_Z17__spirv_IAddCarryll'
in function: '__spirv_IAddCarry(long, long)' called indirectly by at least one of the kernels.

error: backend compiler failed build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DriversAbout specific drivers or how they implement OpenCL.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions