AMD-Grafikkarten unter Linux: Treiber, OpenCL, BOINC, amdconfig und headless per ssh

Hallo Koschi,
was mir nicht ganz klar ist, funktioniert das "dpkg -i amdgpu-ocl.deb" im ersten Schritt auch ohne dein Skript oder ist das die Voraussetzung dafür?
Ich würde das nämlich jetzt gerne mal mit einer Maschine testen.
 
Dafür muss du zuvor http://kerbodyne.com/boinc/amdgpu-ocl.deb herunterladen, das kannst du dann per dpkg (oder auch GUI Paketmanager) installieren (doppelkick auf das Paket?). Habs nur per dpkg probiert, das ist eh die Basis. Das fertig Paket werde ich die Tage entfernen, dann kann sich aber jeder das via das Script selbst bauen. Freue mich über Tests von beidem :-)
 
Bei mir scheitert es leider schon beim ersten Schritt.
Es passiert sowohl mit deinem .deb als auch mit dem selbst erstellen .deb:

Bildschirmfoto vom 2019-03-20 14-32-27.png

Installiert ist 19.04 und mit apt-get update + upgrade up2date gehalten.
Für ein anständiges google Ergebnis nach einem "tar-update" habe ich vergeblich gesucht.
 
Ups sorry, ich hätte die Abhängigkeiten auch freilassen können, tar, sed, binutils etc sind eh immer drauf, hab mal überall den Minimumlevel entfernt, das war Unsinn :-( Die Versionsstände gehörten eigentlich zu anderen Programmen, die im Beispiel für das control File genutzt wurden :]

Hab beide Files 15:24Uhr neu hochgeladen! Sorry nochmal und danke fürs testen!
 
Zuletzt bearbeitet:
Mich würde mal interessieren ob das Paket auch bei meinem DP-Cruncher mit der HD7970 und dem A12-9800 funktioniert. Ich werde das die Tage mal testen denn dann könnte ich bei der Kiste auch von Windows weg kommen. :)
 
Ich hab hier leihweise eine HD7950 von Thorsam, die probiere ich die Tage mal aus, dann geb ich bescheid!
 
Das wäre klasse denn bisher bekam ich immer nur eine von beiden mehr oder weniger zum laufen, weshalb ich bislang noch Windows für die Kiste benötige.
 
Mit deinem .deb funktioniert die Installation, aber die durch das Skript erzeugte .deb weiterhin mit gleichem Fehler.

Meine HD7750 wird leider nicht erkannt.
Auch nicht nach reboot und Neustart von boinc.
 
Achso, du hast ne HD7750, hmm, für die wird wohl der radeon Treiber geladen, nicht amdgpu. Da musst du über die Kernelparameter radeon.si_support=0 amdgpu.si_support=1 erzwingen. Hau die mal in Google rein...

Ich hatte im ersten Anlauf vergessen das Skript auch neu hochzuladen, das dann 15:24Uhr nachgeholt. Hast du es davor geladen, dann war es noch die alte Version. Sorry bin heute bissl tüddelig :-(
 
Schau mal bitte ob clinfo die Karte anzeigt.
Würde meinen die läuft mit amdgpu aktuell...
 
Sorry, das hatte ich auf meinem Screenshot tatsächlich vergessen.
Dort steht nur "Number of platforms 0"

Wollen wir die Diskussion/Kommunikation nicht irgendwo andershin auslagern? :-)
 
Hmm, wenns nicht klappt ist das relevant, wenn es doch klappt auch ;-)
Ich habe heute Abend reichlich Zeit, werde das auf der HD7950 auch mal ausprobieren.

ocl-icd-libopencl1 ist installiert?

--- Update ---

BOINC und clinfo erkennen die Tahiti, BOINC will sie aber noch nicht nutzen, obwohl ich <use_all_gpus>1</use_all_gpus> gesetzt habe, hmmm

Code:
Thu 21 Mar 2019 08:25:10 PM CET |  | OpenCL: AMD/ATI GPU 0: Radeon RX 580 Series (driver version 2766.4, device version OpenCL 1.2 AMD-APP (2766.4), 7863MB, 7863MB available, 5161 GFLOPS peak)
Thu 21 Mar 2019 08:25:10 PM CET |  | OpenCL: AMD/ATI GPU 1 (ignored by config): AMD Radeon HD 7900 Series (driver version 2766.4, device version OpenCL 1.2 AMD-APP (2766.4), 3064MB, 3064MB available, 1658 GFLOPS peak)

clinfo Output
root@system3:/sys/class/hwmon# clinfo
Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.1 AMD-APP (2766.4)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
Platform Host timer resolution 1ns
Platform Extensions function suffix AMD

Platform Name AMD Accelerated Parallel Processing
Number of devices 2
Device Name Ellesmere
Device Vendor Advanced Micro Devices, Inc.
Device Vendor ID 0x1002
Device Version OpenCL 1.2 AMD-APP (2766.4)
Driver Version 2766.4
Device OpenCL C Version OpenCL C 1.2
Device Type GPU
Device Board Name (AMD) Radeon RX 580 Series
Device Topology (AMD) PCI-E, 09:00.0
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 36
SIMD per compute unit (AMD) 4
SIMD width (AMD) 16
SIMD instruction width (AMD) 1
Max clock frequency 1120MHz
Graphics IP (AMD) 8.0
Device Partition (core)
Max number of sub-devices 36
Supported partition types None
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 1024x1024x1024
Max work group size 256
Preferred work group size (AMD) 256
Max work group size (AMD) 1024
Preferred work group size multiple 64
Wavefront width (AMD) 64
Preferred / native vector sizes
char 4 / 4
short 2 / 2
int 1 / 1
long 1 / 1
half 1 / 1 (cl_khr_fp16)
float 1 / 1
double 1 / 1 (cl_khr_fp64)
Half-precision Floating-point support (cl_khr_fp16)
Denormals No
Infinity and NANs No
Round to nearest No
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add No
Support is emulated in software No
Single-precision Floating-point support (core)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Address bits 64, Little-Endian
Global memory size 6829355008 (6.36GiB)
Global free memory (AMD) 6650220 (6.342GiB)
Global memory channels (AMD) 8
Global memory banks per channel (AMD) 16
Global memory bank width (AMD) 256 bytes
Error Correction support No
Max memory allocation 4244635648 (3.953GiB)
Unified memory for Host and Device No
Minimum alignment for any data type 128 bytes
Alignment of base address 2048 bits (256 bytes)
Global Memory cache type Read/Write
Global Memory cache size 16384 (16KiB)
Global Memory cache line size 64 bytes
Image support Yes
Max number of samplers per kernel 16
Max size for 1D images from buffer 134217728 pixels
Max 1D or 2D image array size 2048 images
Base address alignment for 2D image buffers 256 bytes
Pitch alignment for 2D image buffers 256 pixels
Max 2D image size 16384x16384 pixels
Max 3D image size 2048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 8
Local memory type Local
Local memory size 32768 (32KiB)
Local memory syze per CU (AMD) 65536 (64KiB)
Local memory banks (AMD) 32
Max number of constant args 8
Max constant buffer size 4244635648 (3.953GiB)
Preferred constant buffer size (AMD) 16384 (16KiB)
Max size of kernel argument 1024
Queue properties
Out-of-order execution No
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 1ns
Profiling timer offset since Epoch (AMD) 1553195993909888166ns (Thu Mar 21 20:19:53 2019)
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
Thread trace supported (AMD) Yes
Number of async queues (AMD) 2
Max real-time compute queues (AMD) 0
Max real-time compute units (AMD) 0
SPIR versions 1.2
printf() buffer size 4194304 (4MiB)
Built-in kernels (n/a)
Device Extensions cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_amd_bus_addressable_memory cl_khr_spir cl_khr_gl_event

Device Name Tahiti
Device Vendor Advanced Micro Devices, Inc.
Device Vendor ID 0x1002
Device Version OpenCL 1.2 AMD-APP (2766.4)
Driver Version 2766.4
Device OpenCL C Version OpenCL C 1.2
Device Type GPU
Device Board Name (AMD) AMD Radeon HD 7900 Series
Device Topology (AMD) PCI-E, 0a:00.0
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 14
SIMD per compute unit (AMD) 4
SIMD width (AMD) 16
SIMD instruction width (AMD) 1
Max clock frequency 925MHz
Graphics IP (AMD) 6.0
Device Partition (core)
Max number of sub-devices 14
Supported partition types None
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 1024x1024x1024
Max work group size 256
Preferred work group size (AMD) 256
Max work group size (AMD) 1024
Preferred work group size multiple 64
Wavefront width (AMD) 64
Preferred / native vector sizes
char 4 / 4
short 2 / 2
int 1 / 1
long 1 / 1
half 1 / 1 (n/a)
float 1 / 1
double 1 / 1 (cl_khr_fp64)
Half-precision Floating-point support (n/a)
Single-precision Floating-point support (core)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Address bits 32, Little-Endian
Global memory size 3195031552 (2.976GiB)
Global free memory (AMD) <printDeviceInfo:78: get number of CL_DEVICE_GLOBAL_FREE_MEMORY_AMD : error -33>
Global memory channels (AMD) 12
Global memory banks per channel (AMD) 16
Global memory bank width (AMD) 256 bytes
Error Correction support No
Max memory allocation 2491182284 (2.32GiB)
Unified memory for Host and Device No
Minimum alignment for any data type 128 bytes
Alignment of base address 2048 bits (256 bytes)
Global Memory cache type Read/Write
Global Memory cache size 16384 (16KiB)
Global Memory cache line size 64 bytes
Image support Yes
Max number of samplers per kernel 16
Max size for 1D images from buffer 134217728 pixels
Max 1D or 2D image array size 2048 images
Base address alignment for 2D image buffers 256 bytes
Pitch alignment for 2D image buffers 256 pixels
Max 2D image size 16384x16384 pixels
Max 3D image size 2048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 8
Local memory type Local
Local memory size 32768 (32KiB)
Local memory syze per CU (AMD) 65536 (64KiB)
Local memory banks (AMD) 32
Max number of constant args 8
Max constant buffer size 65536 (64KiB)
Preferred constant buffer size (AMD) 16384 (16KiB)
Max size of kernel argument 1024
Queue properties
Out-of-order execution No
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 1ns
Profiling timer offset since Epoch (AMD) 1553195993909888166ns (Thu Mar 21 20:19:53 2019)
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
Thread trace supported (AMD) No
Number of async queues (AMD) 2
Max real-time compute queues (AMD) 0
Max real-time compute units (AMD) 982014176
SPIR versions 1.2
printf() buffer size 4194304 (4MiB)
Built-in kernels (n/a)
Device Extensions cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_amd_bus_addressable_memory cl_khr_spir cl_khr_gl_event

NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) AMD Accelerated Parallel Processing
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [AMD]
clCreateContext(NULL, ...) [default] Success [AMD]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name AMD Accelerated Parallel Processing
Device Name Ellesmere
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (2)
Platform Name AMD Accelerated Parallel Processing
Device Name Ellesmere
Device Name Tahiti
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (2)
Platform Name AMD Accelerated Parallel Processing
Device Name Ellesmere
Device Name Tahiti

ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.2.11
ICD loader Profile OpenCL 2.1

*suspect*

--- Update ---

<use_all_gpus>0|1</use_all_gpus> gabs natürlich doppelt das mit 0 war weiter unten und damit aktiv, eines entfernt, nun zeigt der nicht mehr "(ignored by config)" und lief auch an, leider umgehend Rechenfehler...

--- Update ---

Konsistentes Fehlerbild bei Einstein & Milkyway:

https://einsteinathome.org/task/837400717

Code:
Couldn't create OpenCL command queue (error: -6)!
OpenCL shutdown complete!
initialize_ocl returned error [2013]
OCL context null
OCL queue null
Error generating generic FFT context object [5]
20:58:28 (9556): [CRITICAL]: ERROR: MAIN() returned with error '5'

https://milkyway.cs.rpi.edu/milkyway/result.php?resultid=174687394

Code:
Error creating command queue (-6): CL_OUT_OF_HOST_MEMORY
Error getting device and context (-6): CL_OUT_OF_HOST_MEMORY

--- Update ---

Eine Empfehlung für CL_OUT_OF_HOST_MEMORY waren folgende Umgebungsvariable:

Code:
export GPU_FORCE_64BIT_PTR=1
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100
export GPU_MAX_HEAP_SIZE=100

Damit lief Einstein länger (~40s) bis der Rechner schließlich einfror. Womöglich Out of Memory, schwer zu sagen. Hab die HD7950 erstmal wieder durch die GTX ersetzt, werde bissl forschen, evtl. den alten C2Q + HD7950 aufstellen und dort testen, aber nicht mehr heute...
 
Ja, ocl-icd-libopencl1 ist installiert.
Vielleicht ist die GPU doch zu alt.

edit:
habe beim googlen gefunden, dass evtl. noch ein "sudo apt install mesa-opencl-icd" was bringen kann.
Bin mir aber nicht sicher, ob das jetzt noch was kaputt machen könnte...
 
Zuletzt bearbeitet:
mesa-opencl-icd wäre nötig wenn du Mesa/Clover OpenCL einsetzen willst, für amdgpu-pro/legacy OpenCL braucht es den nicht.
Schadet aber auch nicht, wenn du OpenCL über Clover mal probieren möchtest mit der Karte...
 
Im Gegenteil, die Karte wird nun in clinfo UND in Boinc erkannt und dreht nun einige Testrunden bei dem einen oder anderen GPU-Projekt!

Vielen Dank für die Hilfe!
 
Zeig mal die Kartenidentifikation aus dem BOINC Log bitte.
 
das hier?

Fr 22 Mär 2019 12:23:05 CET | | OpenCL: AMD/ATI GPU 0: AMD Radeon HD 7700 Series (VERDE, DRM 3.27.0, 5.0.0-7-generic, LLVM 8.0.0) (driver version 19.0.0, device version OpenCL 1.1 Mesa 19.0.0, 3072MB, 3072MB available, 512 GFLOPS peak)
 
Ja genau, danke! Das ist also rein freies Mesa/Clover OpenCL, ohne die AMDGPU-PRO OpenCL Implementierung.
Eine Posts zurück hab ich die BOINC Ausgabe der gleichen Karte mit allen drei OpenCL Umsetzungen gezeigt, daran erkennt man also schon um welches OpenCL es sich handelt.

Bitte probiere mal einige Projekte und halte uns auf dem laufenden. Nicht alle werde funktionieren.
 
Bei Einstein lohnt es sich ggF. noch auf 2 WUs parallel umzustellen mit folgender app_info.xml im Projektverzeichnis:

Code:
<app_config>
    <app>
        <name>hsgamma_FGRPB1G</name>
    </app>
    <app_version>
        <app_name>hsgamma_FGRPB1G</app_name>
	<plan_class>FGRPopencl1K-ati</plan_class>
        <ngpus>0.5</ngpus>
    </app_version>
</app_config>
 
Cool, dann kann ich ja meine HD7950 doch mal mit einem neueren Ubuntu testen. Ich war schon kurz davor, das alte 14.04 zu installieren.
 
Dann muss ich morgen mal schauen ob ich es schaffe bei meinem DP Cruncher auszutesten.
 
Zurück
Oben Unten