cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

xerafax
Journeyman III

Segfault when linking

I try to use OpenCL spir with amd drivers. I compiled my kernel successful to spir (with clang 3.2 & khronos spir changes). Loading the program with clCreateProgramWithBinary shows no error. Compiling with clCompileProgram and options "-x spir -spir-std=1.2" is also fine. When I than call clLinkProgram without the option "-create-library" the program segfaults inside clLinkProgram.

Operating system is 64 bit Ubuntu 14.04, amd driver is 14.4, hardware is an amd apu 7850K

0 Likes
2 Replies
xerafax
Journeyman III

The segfault is also happens also when linking a single source program. I attached a very simple example that shows the error.

0 Likes

Please can you post your SPIR binary code to investigate in details?

Regards,

0 Likes