AnsweredAssumed Answered

Does CLOC generate correct xxx.brig and xxx.hsail?

Question asked by humasama on Oct 6, 2014
Latest reply on Feb 18, 2015 by vladimir_1

I used CLOC(CLOC + HSAIL-HLC-Stable + HSAIL-Tools) to generate .hsail and .brig files, but some strange things happened:

I use the source file vector_copy.cl in CLOC/examples/hsa/vector_copy to generate a new vector_copy.hsail, but the vector_copy,hsail is different from the old same name file in HSA-Runtime-AMD/sample/vector_copy.

And the new one cannot work correctly, I guess the arguments didn't pass correctly. Who met the same problem? How can I get the correct xxx.hsail and xxx.brig?

 

the old one:

prog kernel &__vector_copy_kernel(

    kernarg_u64 %a,

    kernarg_u64 %b)

 

the new one:

prog kernel &__OpenCL_vector_copy_kernel(

    kernarg_u64 %global_offset_0,

    kernarg_u64 %global_offset_1,

    kernarg_u64 %global_offset_2,

    kernarg_u64 %printf_buffer,

    kernarg_u64 %vqueue_pointer,

    kernarg_u64 %aqlwrap_pointer,

    kernarg_u64 %in,

    kernarg_u64 %out)

Outcomes