cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

humasama
Adept I

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

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)

0 Likes
1 Solution
vladimir_1
Adept II

HSAIL-HLC-Stable adds service parameters to the kernel.

Some details here:

CLOC Compiler and Sample SDK · HSAFoundation/HSA-Docs-AMD Wiki · GitHub

Options are either use -c CLOC option to generate snack and use provided boilerplate code or use some conditional compilation directives to switch between dev and stable branches of HSAIL-HLC.

View solution in original post

0 Likes
2 Replies
arangana
Staff

I am having exactly same issue. I am getting Bad Arguments message because of this. Did you get the solution for this ?

0 Likes
vladimir_1
Adept II

HSAIL-HLC-Stable adds service parameters to the kernel.

Some details here:

CLOC Compiler and Sample SDK · HSAFoundation/HSA-Docs-AMD Wiki · GitHub

Options are either use -c CLOC option to generate snack and use provided boilerplate code or use some conditional compilation directives to switch between dev and stable branches of HSAIL-HLC.

0 Likes