HSAFoundation / HSA-Drivers-Linux-AMD

These drivers have been superseded by ROCm Platform now hosted at Radeon Open Compute GitHub Repo
https://github.com/RadeonOpenCompute
Other
61 stars 15 forks source link

Cannot co-exist with OpenCL driver #12

Open syifan opened 9 years ago

syifan commented 9 years ago

The HSA kfd driver works on radeon driver but opencl driver works on fglrx driver. This two drivers cannot co-exist on one machine. Can I still run OpenCL program on an machine where HSA is installed?

ogabbay commented 9 years ago

Not with fglrx. But you can use CLOC - the offline cl compiler - to convert your OpenCL code to HSAIL and then run it over the HSA runtime. See https://github.com/HSAFoundation/CLOC

rickbagley commented 9 years ago

Hello Oded,

What is the recommended way to run HSAIL code on the HSA runtime.

Currently, I am trying to run HSAIL code on the HSA runtime provided with HSA-Runtime-AMD. Note the vector_copy sample appears to be running successfully on my machine.

(Should we be using the runtime in HSA-Runtime-Reference-Source?)

I seeking to run the HSAIL for another application in the same manner as the vector_copy sample. One problem I see is a mismatch in HSAIL version between what the CLOC compiler is generating, and what the HSAIL looks like for the vector_copy sample. This is invoking CLOC using the HSAIL compiler in HSAIL-HLC-Stable.

Should we be using with CLOC an HSAIL compiler built from HSAIL-HLC-Development? I am trying that, but the llvm-link step is failing.

Thanks, Rick

On Mon, Apr 27, 2015 at 5:21 AM, Oded Gabbay notifications@github.com wrote:

Not with fglrx. But you can use CLOC - the offline cl compiler - to convert your OpenCL code to HSAIL and then run it over the HSA runtime. See https://github.com/HSAFoundation/CLOC

— Reply to this email directly or view it on GitHub https://github.com/HSAFoundation/HSA-Drivers-Linux-AMD/issues/12#issuecomment-96629571 .

syifan commented 9 years ago

Hi Rick

The CLOC master branch is not up to date. Please find CLOC-0.9 branch. It can compile OpenCL program with HSA host without problem. However, I cannot compare HSA with OpenCL on the same machine, since the driver does not compatible with each other.

Yifan

jedwards-AMD commented 9 years ago

Hi Rick,

Also, you can use either the runtime from the reference source or from the binary release. Again, CLOC-0.9 is the up to date branch.

Adrian

rickbagley commented 9 years ago

Hello Oded, Yifan, Adrian,

Yifun: Thanks. I used CLOC-0.9, which generates code acceptable to the runtime (1.0f)

Adrian: I am glad to know that the compiled runtime can be used in place of the distributed binary. I haven't tried it yet, but plan to. Also, thanks for your tips on another thread re: setup of the runtime and kernel driver. I am running all tests that I have found without issue.

I should have replied earlier. Positive feedback is important!

Thanks, Rick

On Mon, May 4, 2015 at 7:29 AM, James Edwards notifications@github.com wrote:

Hi Rick,

Also, you can use either the runtime from the reference source or from the binary release. Again, CLOC-0.9 is the up to date branch.

Adrian

— Reply to this email directly or view it on GitHub https://github.com/HSAFoundation/HSA-Drivers-Linux-AMD/issues/12#issuecomment-98726859 .