Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot co-exist with OpenCL driver #12

Open
syifan opened this issue Apr 17, 2015 · 5 comments
Open

Cannot co-exist with OpenCL driver #12

syifan opened this issue Apr 17, 2015 · 5 comments

Comments

@syifan
Copy link

syifan commented Apr 17, 2015

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
Copy link
Contributor

ogabbay commented Apr 27, 2015

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
Copy link

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 [email protected]
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
#12 (comment)
.

@syifan
Copy link
Author

syifan commented May 1, 2015

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
Copy link

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
Copy link

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 [email protected]
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
#12 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants