OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.

Offline Compiler Crash

ABoxe
Beginner
177 Views

Hi,

I have the latest sdk and run time. When I build my kernel, I get the following errors:

 

1>INTEL_OPENCL_BUILD_RULES : warning : Linking two modules of different data layouts!
1>INTEL_OPENCL_BUILD_RULES : warning : Linking two modules of different target triples: C:\Program Files (x86)\Common Files\Intel\OpenCL\bin\common\clbltfnshared.rtl: 'i686-pc-win32-elf' and 'x86_64-pc-win32-elf'

1>  Stored value type does not match pointer operand type!
1>    store <4 x i8>* %loadedValue1341.i, i8** %loadedValue1348.i, align 8
1>   i8*Stored value type does not match pointer operand type!
1>    store <4 x i8>* %loadedValue1321.i, i8** %"GEP[Lane]532.i", align 8
1>   i8*Stored value type does not match pointer operand type!
1>    store <4 x i8>* %loadedValue1313.i, i8** %"GEP[Lane]534.i", align 8
1>   i8*Stored value type does not match pointer operand type!
1>    store <4 x i8>* %loadedValue1305.i, i8** %"GEP[Lane]536.i", align 8
1>   i8*Stored value type does not match pointer operand type!
1>    store <4 x i8>* %loadedValue1337.i, i8** %loadedValue1352.i, align 8
1>   i8*Stored value type does not match pointer operand type!
1>    store <4 x i8>* %loadedValue1325.i, i8** %"GEP[Lane]553.i", align 8
1>   i8*Stored value type does not match pointer operand type!
1>    store <4 x i8>* %loadedValue1317.i, i8** %"GEP[Lane]555.i", align 8
1>   i8*Stored value type does not match pointer operand type!
1>    store <4 x i8>* %loadedValue1309.i, i8** %"GEP[Lane]557.i", align 8
1>   i8*Broken module found, compilation aborted!

 

The problem comes from the following line of code:

typedef struct mqc {
    uint c;                // code register
    uint a;                // current interval value
    uint ct;            // count of number of shifts applied to registers a and c
    uchar *bp;          // byte pointer
    uchar *start;       // start of byte buffer
    CONSTANT mqc_state_t* ctxs[MQC_NUMCTXS];    
    CONSTANT mqc_state_t **curctx;
} mqc_t;

uchar codeStream[128];

// the following line causes the crash

mqc.bp = codeStream-1;

I believe I have the 14.2 runtime. How can I check runtime version? Also, is there a way of downloading the old 14.1 runtime?

 

Thanks.

 

 

 

 

 

0 Kudos
3 Replies
ABoxe
Beginner
177 Views

Well, I rearranged the code and now the crash went away. Strange.


 

ABoxe
Beginner
177 Views

No, it is still happening.

ABoxe
Beginner
177 Views

Fixed now. I think it had something to do with the constant memory space.

Reply