cancel
Showing results for 
Search instead for 
Did you mean: 

General Discussions

jsollie1
Adept I

amd KFD API documentation: where to find it?

Hello everyone,

A few days ago, I gave up on hardware raid (due to having MANY issues with different controllers) and am preparing to go for linux software raid instead.

An idea I'm playing with, is to see whether I can develop a mod so the linux kernel uses the GPU when available (HSA / amdkfd) so the CPU isn't loaded by performing raid 6 calculations to verify integrity.  It has other jobs to do.

I know openCL, but is there a way to use HSA /amdkfd in the linux kernel directly without an external llvm-based compiler?  and if so, is there ANY documentation about that?

0 Likes
3 Replies
dipak
Big Boss

You may check the link below if it is helpful to you.

https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver

For any query/issue related to this kernel driver, please post here: https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/issues

Thanks.

0 Likes

this looks good ... but any idea about API documentation for using the rock-kernel-driver?

*EDIT*:

As far as I understand, both opencl + hip require a jit compiler to compile the code at runtime so it can be executed on the GPU.

This is not possible when running a kthread, right?

Is there maybe some set of function calls exposed to kthreads to run gpu code in a kthread?

0 Likes

As I mentioned, you may use the related github support page to post your query. The developers or contributors of the rock-kernel-driver project may provide you some suggestions.

Below are some related links: 

https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface

https://github.com/RadeonOpenCompute/ROCR-Runtime

ROCm related documentation is available here: https://docs.amd.com/

Thanks.

0 Likes