-
Notifications
You must be signed in to change notification settings - Fork 33
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
how to compile on ubuntu? #6
Comments
In your case, OpenCL includes are missing. Please, install OpenCL headers (from opencl icd or other package). If you have AMDGPU-PRO drivers, please add extra library directory ("-L/opt/amdgpu-pro/lib/x86_64-linux-gnu/") to LIBDIR for OpenCL library. If you are using opencl-icd or Mesa OpenCL, then an extra library directory is obsolete. |
yes, AMDGPU-PRO, but I don't know where to get OpenCL headers from. the package mentioned is installed:
but that does not include the header file missing:
this I get the same error as above. I tried installing mesa-opencl-icd, but the results are the same |
mesa-opencl-icd is obsolete. you can get OpenCL headers from www.khronos.org site. maybe exist package named as 'opencl-headers' or with similar name in ubuntu repository. |
thanks. I got it to compile, had to install the following:
and of course ADL_SDK V10 from http://developer.amd.com/display-library-adl-sdk/ thanks for the pointers the app starts up and shows diags, but doesn't work as expected. the issue might be with the performance levels. this is on an RX 580 card:
note that the performance level is not displayed. at the same time:
trying to change the memory clock for example doesnt' work:
see it remain at 300Mhz trying to set performance level 1 fails:
the same happens if I use ADL_SDK 9 or 10. what am I doing wrong? |
First and foremost AMDGPU-PRO isn't supported on 17.04 since it uses 4.10 kernel and AMDGPU-PRO's DKMS won't build on any kernel >= 4.10. So you won't have a driver to probe EVEN if you can get it built. I can't tell if you have the AMDSDK is installed ( NOT THE ADL ). If you are doing anything with the driver usually you need the SDK. Mesa OpenCL is either WIP/ or outdated ( depending on who you ask ). i.e. it doesn't work. There is a tool very similar to amdcovc that AMD provides (and recently started updating). There is a compiled binary provided. https://github.com/RadeonOpenCompute/ROC-smi see if you can get it to talk to anything you have, if it can't you don't have a working driver stack. ( You don't need the ROCM extensions installed in order to probe the driver or build the tool. It will move between CLK's and power levels but I suppose it is intended for VEGA. However, since It is built ontop of the amgpu and ampgu-pro stack, so it has SOME functionality and is useful to some extent ) |
thanks for the pointer. the ROC-smi tool also seems to be 'read only', e.g. it can display info, but it cannot seem to change it maybe a downgrade to 16.04 LTS would make a difference. I'll take a look... |
Most of the functionality that you will see comes from the sysfs drivers that are exposed by amgpu in the kernel. You can interact with some of them, like the fans .. the rest require "more cowbell!".. like AMDSDK, AMDGPU-PRO or ROCM .. don't bother with later kernels .. most of the more interesting amgpu merges are ongoing and they are all very much out of sync with each other.. i.e. the kernel keeps moving forward, AMD keeps trying ( badly ) to catch up, while Ubuntu remains stuck in the distant past. I suppose this is not the place to get philosophical but it really is in a rather pathetic state at the moment, and the most noticeable effect of all of this, is the inability to control (or even probe) some of the most basic things. If you don't mix all the right ingredients together, none of it works. |
Also fine work with ROCK 3.5.0 version under Debian10. |
could you be more specific in what are the dependencies for this app to be compiled under ubuntu 17.04?
this is how for I get:
The text was updated successfully, but these errors were encountered: