Comments (10)
Have you checked with clinfo whether any platform is available? I guess you need amd's drivers to use opencl on amd card.
from jocl.
Wow quick answer!! Thanks a lot. Are you the author of JOCL?
I am trying to find the ATI drivers for Peppermint 7/64. What I want is ATIStream, right? However, apt doesn't help:
Package amd-libopencl1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
ocl-icd-opencl-dev:i386 ocl-icd-opencl-dev
ocl-icd-opencl-dev doesn't do it either, program still gives same message.
Oh yeah, and clinfo says "Number of platforms 0".
from jocl.
I don't think you need ATIStream. You need AMD's opencl implementation, which comes with AMD's proprietary drivers. Depending on your GPU, that's either Catalyst, or AMDGPU-PRO. ocl-icd is just an "interface" that delegates to the proper opencl platform implementation. You don't have any, thus clinfo returns 0 platforms, and that seems to be the reason you get the exception when you try to access the info of a platform that does not exist.
from jocl.
BTW, I am not the author of JOCL, just a satisfied user.
from jocl.
Thanks blueberry!
AMD drivers seem like a nightmare. I am trying to find the Linux driver for my A6-7310 APU here. No idea how to get through that form to get that.
I am talking to the Peppermint Linux support, and they say AMD drivers are not available in Peppermint 7, just in Peppermint 6. I can almost not believe that.
from jocl.
As Peppermint is based on Ubuntu, you should be covered, since it's AMD's primary target when releasing for Linux. I know nothing more, I can just confirm that Arch Linux covers Catalyst quite well through pacman & AUR.
from jocl.
Thanks blueberry, I'm trying AMD suppport. Could I get in touch with you? I really want to get JOCL up and working. I see you have a cloned JOCL repository? What is that about? Are you distributing any JOCL-based applications? I have to figure out how to tell people how to set up JOCL (and requirements!) if I want to seriously make use of it (as I'm programming for other people too, not just for myself).
from jocl.
Thanks @blueberry for jumping in here so quickly! I could only have made the vague guess what might be wrong here - namely, that there is no OpenCL implementation available (as blueberry suggested, and as it is confirmed by "0 platforms").
In general, there should hardly be specific requirements for JOCL: As soon as there is any OpenCL implementation available, it should work - and usually, such an implementation will be installed together with the driver, regardless of whether it's AMD or NVIDIA or any other platform.
But ... for you, it did not seem to work. Interestingly, websearching for "amd A6-7310 APU driver linux" yields your thread at https://community.amd.com/thread/211567 (Could it be that this a very specific issue? And... was the link that you received there helpful?). Beyond that, for further details about "Peppermint" or driver versions, I can hardly help.
from jocl.
I now have the same issue with a new notebook (Ryzen 5 2500U).
According to this, AMD just in general doesn't supply Linux drivers for its mobile CPUs. Which procludes me from programming the GPU in Java? How sad.
from jocl.
If so, it does not only mean that you can't do GPU computing in Java, but with this setup in general.
I'm afraid I cannot provide really focused help here. A quick websearch reveals this thread (in German), https://forums.gentoo.org/viewtopic-t-1105078-start-0.html , where someone talks about some hassle of compiling things on his own, but I didn't look into the details.
from jocl.
Related Issues (20)
- Fix the virtual machine build
- JVM crash on call of org.jocl.CL.clEnquequeNDRangeKernelNative HOT 1
- Struct implementation HOT 8
- MIOpen OpenCL support (AMD's alternative to cuDNN)
- OpenCL 3.0 is here
- Build Failure Windows 10.0.18362.1016 HOT 5
- Debug Assertion Failed in File "xtree" HOT 6
- JOCL on Mac OS Big Sur & Apple Silicon M1 HOT 5
- Build failed on Ubuntu 18.04 (on mvn clean install) HOT 1
- cl_APPLE_gl_sharing bindings? HOT 5
- Trying to run any sample on osx big sur, results in "The function clCreateCommandQueueWithProperties is not supported" HOT 3
- Crashes my mac HOT 8
- [question] code signing on macos big sur HOT 3
- [Question] How to get platform and device information? HOT 1
- Native pointer address! HOT 3
- How to use JOCL
- How to use jocl on windows HOT 24
- Why is there no libJOCL_2_0_4-linux-arm64.so? HOT 35
- Google pixel support HOT 3
- Panama Support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jocl.