Allow ethminer to be compiled without amdgpu-pro.

This commit is contained in:
Hyperling 2021-02-13 05:54:59 -06:00
parent 49f188203a
commit f22b8c2d55
2 changed files with 4 additions and 2 deletions

View File

@ -91,7 +91,7 @@
# Ethereum # # Ethereum #
- include: tasks/miner/gpu/ethminer.yml - include: tasks/miner/gpu/ethminer.yml
when: amdgpu is defined and eth is defined when: eth is defined
# Scheduling # Scheduling
post_tasks: post_tasks:

View File

@ -55,10 +55,12 @@
opencl_flag: "OFF" opencl_flag: "OFF"
cuda_flag: "OFF" cuda_flag: "OFF"
dbus_flag: "OFF" dbus_flag: "OFF"
sys_opencl_flag: "ON"
- name: Ethminer | Determine OPENCL Flag - name: Ethminer | Determine OPENCL Flag
set_fact: set_fact:
opencl_flag: "ON" opencl_flag: "ON"
sys_opencl_flag: "OFF"
when: amdgpu is defined when: amdgpu is defined
- name: Ethminer | Determine CUDA Flag - name: Ethminer | Determine CUDA Flag
@ -72,7 +74,7 @@
when: ansible_distribution == "Pop!_OS" when: ansible_distribution == "Pop!_OS"
- name: Ethminer | cmake Flags - name: Ethminer | cmake Flags
shell: 'cd /root/Downloads/ethminer/build; cmake .. -DETHASHCL={{ opencl_flag }} -DETHASHCUDA={{ cuda_flag }} -DAPICORE=ON -DBINKERN=ON -DETHDBUS={{ dbus_flag }} -DUSE_SYS_OPENCL=OFF -DEVBUILD=ON' shell: 'cd /root/Downloads/ethminer/build; cmake .. -DETHASHCL={{ opencl_flag }} -DETHASHCUDA={{ cuda_flag }} -DAPICORE=ON -DBINKERN=ON -DETHDBUS={{ dbus_flag }} -DUSE_SYS_OPENCL={{ sys_opencl_flag }} -DEVBUILD=ON'
when: ethminer_install.failed when: ethminer_install.failed
- name: Ethminer | cmake Build - name: Ethminer | cmake Build