# AMD Environment Setup

**URL:** <https://forum.grin.mw/t/amd-environment-setup/3848>\
**Category:** Mining\
**Created:** [February 5, 2019, 4:56pm UTC](https://forum.grin.mw/t/amd-environment-setup/3848 "2019-02-05T16:56:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LuckyX2](https://avatars.discourse-cdn.com/v4/letter/l/b782af/32.png) [@LuckyX2](https://forum.grin.mw/u/LuckyX2)\
**Post date:** [February 5, 2019, 4:56pm UTC](https://forum.grin.mw/t/amd-environment-setup/3848/1 "2019-02-05T16:56:43Z")

</div>

Hi all, I want to test out mining on my Vega64 but I’m having a real difficult time getting the environment setup, clinfo shows 0 OpenCL platforms, etc.

People running AMD, how did you set your environment up? I installed the latest 18.50 pro driver. Tried it both with and without the --opencl=legacy flag and neither seems to work. Can’t ever get it to identify any OpenCL devices. Thanks!

Trying to mine in Ubuntu 18.04 with grin-miner btw.

---

<div class="post-metadata">

**Author:** ![photon](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/photon/32/27_2.png) [@photon](https://forum.grin.mw/u/photon)\
**Post date:** [February 5, 2019, 6:43pm UTC](https://forum.grin.mw/t/amd-environment-setup/3848/2 "2019-02-05T18:43:54Z")

</div>

You need to be in `video` group for OpenCL to work. But this only worked for me on Ubuntu Desktop, could not get it to work on Ubuntu server.

---

<div class="post-metadata">

**Author:** ![LuckyX2](https://avatars.discourse-cdn.com/v4/letter/l/b782af/32.png) [@LuckyX2](https://forum.grin.mw/u/LuckyX2)\
**Post date:** [February 5, 2019, 10:31pm UTC](https://forum.grin.mw/t/amd-environment-setup/3848/3 "2019-02-05T22:31:15Z")

</div>

Well I’m not sure what was different this time but I wiped all traces of the driver/openCL, reinstalled with the --opencl=pal, legacy option and it now correctly detects one platform in clinfo and the miner runs fine.

Needed the ocl-icd-opencl-dev package also to build the plugins. Apparently the AMD driver doesn’t include that.
