Quantcast
Viewing latest article 4
Browse Latest Browse All 12

Re: 13.4 -save-temp compiler option doesn't do anything

Hi, thanks for spending your time on this!

 

Here are the steps:

0. win7 64bit, cat 13.4

1. Download this small test kernel -> http://x.pgy.hu/~worm/het/disasm_test.zip  /test.elf  (note this kernel is for Capeverde, and it runs perfectly)

2. Call clCreateProgramWithBinary() to upload it to OpenCL

3. Call clBuildProgram() with "-save-temps=c:\$ocl_tmp\cl -fno-bin-source -fno-bin-llvmir -fno-bin-amdil -fbin-exe" parameters.  (you'll need Admin rights to do this)

4. Check c:\$ocl_tmp dir and there will be nothing.

 

If you do the above on cat12.10, then you'll find an .isa file containing 11 disassembled gcn assembly instructions.


Additional info: The following things still works on 13.4:

- the http://x.pgy.hu/~worm/het/disasm_test.zip /test_il.elf file is an .elf that contains only an il file. If you give it to clCreateProgramWithBinary(),  clBuildProgram(with above exe-only commandline), and then -> .il, .isa files will be generated.

- also if you compile an opencl file with clCreateProgramWithSource(),  clBuildProgram(with above exe-only commandline), then -> .il, .isa, .ocl files are generated


Only in cases when an executable only .elf is given to clCreateProgramWithBinary(), clBuildProgram() will refuse to generate .isa disassembled image.


Viewing latest article 4
Browse Latest Browse All 12

Trending Articles