kann ich zwar im Grundsatz bestätigen, aber eben: im Grundsatzniemand hat geschrieben:27.12.2017 19:28:33ja, natürlich kann man die 1050 auch unter Debian mit etwa CUDA oder OpenCL zum Rechnen benutzen.
Vor 3 Jahren hab ich eine Palit gekauft (wegen passiver Kühlung) und in einen "Flüster-PC" eingebaut.
Hab mich dann ein viertel Jahr damit rumgeplagt und dann wieder ausgebaut (damals noch unter Linux Mint).
Weil ich ungern 200 EUR Elektroschrott rumliegen hab und meine Digitalfotos immer größer werden (Dateivolumen), hab ich auf einem anderen Rechner (Mainboard) die Karte wieder eingebaut.
Ergebnis: selber Mist wie damals.
Die Daten:
Code: Alles auswählen
System:
Host: Rechner2 Kernel: 4.19.0-17-amd64 x86_64 bits: 64 compiler: gcc
v: 8.3.0 Desktop: Cinnamon 3.8.8 Distro: Debian GNU/Linux 10 (buster)
Machine:
Type: Desktop System: Gigabyte product: N/A v: N/A serial: <filter>
Mobo: Gigabyte model: Z77-DS3H v: x.x serial: <filter>
UEFI: American Megatrends v: F9 date: 09/19/2012
CPU:
Topology: Quad Core model: Intel Core i5-3570K bits: 64 type: MCP
arch: Ivy Bridge rev: 9 L2 cache: 6144 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 27226
Speed: 1602 MHz min/max: 1600/3800 MHz Core speeds (MHz): 1: 1602 2: 1602
3: 1602 4: 1602
Graphics:
Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] driver: nvidia v: 418.197.02
bus ID: 01:00.0
Display: x11 server: X.Org 1.20.4 driver: nvidia
unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1200~60Hz
OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 418.197.02
direct render: Yes
Code: Alles auswählen
~# apt-get install -y nvidia-detect
~# nvidia-detect #liefert Info über zu installierenden Treiber:
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] [10de:1c82] (rev a1)
Checking card: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
Your card is supported by the default drivers and legacy driver series 390.
It is recommended to install the
nvidia-driver
package.
~# apt-get install -y nvidia-driver
~# apt-get install -y nvidia-cuda-dev nvidia-cuda-toolkit
Code: Alles auswählen
~$ clinfo
Number of platforms 1
Platform Name NVIDIA CUDA
Platform Vendor NVIDIA Corporation
Platform Version OpenCL 1.2 CUDA 10.1.354
Platform Profile FULL_PROFILE
Platform Extensions 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_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer
Platform Extensions function suffix NV
Platform Name NVIDIA CUDA
Number of devices 1
Device Name GeForce GTX 1050 Ti
Device Vendor NVIDIA Corporation
Device Vendor ID 0x10de
Device Version OpenCL 1.2 CUDA
Driver Version 418.197.02
Device OpenCL C Version OpenCL C 1.2
Device Type GPU
Device Topology (NV) PCI-E, 01:00.0
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 6
Max clock frequency 1392MHz
Compute Capability (NV) 6.1
Device Partition (core)
Max number of sub-devices 1
Supported partition types None
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 1024x1024x64
Max work group size 1024
Preferred work group size multiple 32
Warp size (NV) 32
Preferred / native vector sizes
char 1 / 1
short 1 / 1
int 1 / 1
long 1 / 1
half 0 / 0 (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 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
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 4234215424 (3.943GiB)
Error Correction support No
Max memory allocation 1058553856 (1010MiB)
Unified memory for Host and Device No
Integrated memory (NV) No
Minimum alignment for any data type 128 bytes
Alignment of base address 4096 bits (512 bytes)
Global Memory cache type Read/Write
Global Memory cache size 98304 (96KiB)
Global Memory cache line size 128 bytes
Image support Yes
Max number of samplers per kernel 32
Max size for 1D images from buffer 134217728 pixels
Max 1D or 2D image array size 2048 images
Max 2D image size 16384x32768 pixels
Max 3D image size 16384x16384x16384 pixels
Max number of read image args 256
Max number of write image args 16
Local memory type Local
Local memory size 49152 (48KiB)
Registers per block (NV) 65536
Max number of constant args 9
Max constant buffer size 65536 (64KiB)
Max size of kernel argument 4352 (4.25KiB)
Queue properties
Out-of-order execution Yes
Profiling Yes
Prefer user sync for interop No
Profiling timer resolution 1000ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
Kernel execution timeout (NV) Yes
Concurrent copy and kernel execution (NV) Yes
Number of async copy engines 2
printf() buffer size 1048576 (1024KiB)
Built-in kernels (n/a)
Device Extensions 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_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) NVIDIA CUDA
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [NV]
clCreateContext(NULL, ...) [default] Success [NV]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) Invalid device type for platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No platform
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.2.12
ICD loader Profile OpenCL 2.2
Code: Alles auswählen
~$ nvidia-smi
Sun Sep 19 19:55:50 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.197.02 Driver Version: 418.197.02 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 105... On | 00000000:01:00.0 On | N/A |
| 20% 37C P0 N/A / 75W | 413MiB / 4038MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 772 G /usr/lib/xorg/Xorg 162MiB |
| 0 1221 G cinnamon 79MiB |
| 0 1526 G ...AAAIAAAAAAAAAAgAAAAAAAAA --shared-files 168MiB |
+-----------------------------------------------------------------------------+
ABER:
Sobald der Rechner in "suspend-to-RAM" geht und ich ihn wieder aufwecke, kommen solche hübsche Zeilen auf dem Bildschirm, die sich im /var/log/kern.log so niederschlagen:
Code: Alles auswählen
Sep 20 18:57:36 Rechner2 kernel: [ 7075.483941] Freezing user space processes ... (elapsed 0.001 seconds) done.
Sep 20 18:57:36 Rechner2 kernel: [ 7075.485175] OOM killer disabled.
Sep 20 18:57:36 Rechner2 kernel: [ 7075.485176] Freezing remaining freezable tasks ... (elapsed 3.413 seconds) done.
Sep 20 18:57:36 Rechner2 kernel: [ 7078.899066] Suspending console(s) (use no_console_suspend to debug)
Sep 20 18:57:36 Rechner2 kernel: [ 7078.899760] serial 00:05: disabled
Sep 20 18:57:36 Rechner2 kernel: [ 7078.913148] sd 1:0:1:0: [sdd] Synchronizing SCSI cache
Sep 20 18:57:36 Rechner2 kernel: [ 7078.913262] sd 1:0:0:0: [sdc] Synchronizing SCSI cache
Sep 20 18:57:36 Rechner2 kernel: [ 7078.913289] sd 0:0:1:0: [sdb] Synchronizing SCSI cache
Sep 20 18:57:36 Rechner2 kernel: [ 7078.913313] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Sep 20 18:57:36 Rechner2 kernel: [ 7078.913353] sd 1:0:1:0: [sdd] Stopping disk
Sep 20 18:57:36 Rechner2 kernel: [ 7078.913473] sd 0:0:1:0: [sdb] Stopping disk
Sep 20 18:57:36 Rechner2 kernel: [ 7080.269687] sd 1:0:0:0: [sdc] Stopping disk
Sep 20 18:57:36 Rechner2 kernel: [ 7080.270984] sd 0:0:0:0: [sda] Stopping disk
Sep 20 18:57:36 Rechner2 kernel: [ 7080.737510] ACPI: Preparing to enter system sleep state S3
Sep 20 18:57:36 Rechner2 kernel: [ 7080.737881] PM: Saving platform NVS memory
Sep 20 18:57:36 Rechner2 kernel: [ 7080.737899] Disabling non-boot CPUs ...
Sep 20 18:57:36 Rechner2 kernel: [ 7080.754407] smpboot: CPU 1 is now offline
Sep 20 18:57:36 Rechner2 kernel: [ 7080.774392] smpboot: CPU 2 is now offline
Sep 20 18:57:36 Rechner2 kernel: [ 7080.790366] smpboot: CPU 3 is now offline
Sep 20 18:57:36 Rechner2 kernel: [ 7080.793006] ACPI: Low-level resume complete
Sep 20 18:57:36 Rechner2 kernel: [ 7080.793040] PM: Restoring platform NVS memory
Sep 20 18:57:36 Rechner2 kernel: [ 7080.794145] Enabling non-boot CPUs ...
Sep 20 18:57:36 Rechner2 kernel: [ 7080.794179] x86: Booting SMP configuration:
Sep 20 18:57:36 Rechner2 kernel: [ 7080.794179] smpboot: Booting Node 0 Processor 1 APIC 0x2
Sep 20 18:57:36 Rechner2 kernel: [ 7080.796954] cache: parent cpu1 should not be sleeping
Sep 20 18:57:36 Rechner2 kernel: [ 7080.797086] CPU1 is up
Sep 20 18:57:36 Rechner2 kernel: [ 7080.797104] smpboot: Booting Node 0 Processor 2 APIC 0x4
Sep 20 18:57:36 Rechner2 kernel: [ 7080.799876] cache: parent cpu2 should not be sleeping
Sep 20 18:57:36 Rechner2 kernel: [ 7080.800019] CPU2 is up
Sep 20 18:57:36 Rechner2 kernel: [ 7080.800036] smpboot: Booting Node 0 Processor 3 APIC 0x6
Sep 20 18:57:36 Rechner2 kernel: [ 7080.802821] cache: parent cpu3 should not be sleeping
Sep 20 18:57:36 Rechner2 kernel: [ 7080.803062] CPU3 is up
Sep 20 18:57:36 Rechner2 kernel: [ 7080.805316] ACPI: Waking up from system sleep state S3
Sep 20 18:57:36 Rechner2 kernel: [ 7080.843326] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.CHN0.DRV0._GTF.DSSP], AE_NOT_FOUND (20180810/psargs-330)
Sep 20 18:57:36 Rechner2 kernel: [ 7080.843335] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.CHN0.DRV0._GTF, AE_NOT_FOUND (20180810/psparse-516)
Sep 20 18:57:36 Rechner2 kernel: [ 7080.843375] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.CHN0.DRV1._GTF.DSSP], AE_NOT_FOUND (20180810/psargs-330)
Sep 20 18:57:36 Rechner2 kernel: [ 7080.843382] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.CHN0.DRV1._GTF, AE_NOT_FOUND (20180810/psparse-516)
Sep 20 18:57:36 Rechner2 kernel: [ 7080.843491] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.CHN1.DRV0._GTF.DSSP], AE_NOT_FOUND (20180810/psargs-330)
Sep 20 18:57:36 Rechner2 kernel: [ 7080.843496] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.CHN1.DRV0._GTF, AE_NOT_FOUND (20180810/psparse-516)
Sep 20 18:57:36 Rechner2 kernel: [ 7080.843557] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.CHN1.DRV1._GTF.DSSP], AE_NOT_FOUND (20180810/psargs-330)
Sep 20 18:57:36 Rechner2 kernel: [ 7080.843561] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.CHN1.DRV1._GTF, AE_NOT_FOUND (20180810/psparse-516)
Sep 20 18:57:36 Rechner2 kernel: [ 7080.844380] serial 00:05: activated
Sep 20 18:57:36 Rechner2 kernel: [ 7080.855010] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT1.CHN0.DRV0._GTF.DSSP], AE_NOT_FOUND (20180810/psargs-330)
Sep 20 18:57:36 Rechner2 kernel: [ 7080.855014] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT1.CHN0.DRV0._GTF, AE_NOT_FOUND (20180810/psparse-516)
Sep 20 18:57:36 Rechner2 kernel: [ 7080.855308] sd 0:0:0:0: [sda] Starting disk
Sep 20 18:57:36 Rechner2 kernel: [ 7080.855309] sd 0:0:1:0: [sdb] Starting disk
Sep 20 18:57:36 Rechner2 kernel: [ 7080.855322] sd 1:0:0:0: [sdc] Starting disk
Sep 20 18:57:36 Rechner2 kernel: [ 7080.855324] sd 1:0:1:0: [sdd] Starting disk
Sep 20 18:57:36 Rechner2 kernel: [ 7081.386499] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 330)
Sep 20 18:57:36 Rechner2 kernel: [ 7081.388927] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT1.CHN0.DRV0._GTF.DSSP], AE_NOT_FOUND (20180810/psargs-330)
Sep 20 18:57:36 Rechner2 kernel: [ 7081.388932] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT1.CHN0.DRV0._GTF, AE_NOT_FOUND (20180810/psparse-516)
Sep 20 18:57:36 Rechner2 kernel: [ 7081.393534] ata3.00: configured for UDMA/100
Sep 20 18:57:36 Rechner2 kernel: [ 7081.682905] OOM killer enabled.
Sep 20 18:57:36 Rechner2 kernel: [ 7081.682906] Restarting tasks ...
Sep 20 18:57:36 Rechner2 kernel: [ 7081.683103] pci_bus 0000:05: Allocating resources
Sep 20 18:57:36 Rechner2 kernel: [ 7081.683816] done.
Sep 20 18:57:36 Rechner2 kernel: [ 7081.700458] PM: suspend exit
Sep 20 18:57:36 Rechner2 kernel: [ 7081.710472] firewire_core 0000:05:00.0: rediscovered device fw0
Sep 20 18:57:36 Rechner2 kernel: [ 7081.894466] ata4: failed to resume link (SControl 30)
Sep 20 18:57:36 Rechner2 kernel: [ 7081.905299] ata4: SATA link down (SStatus 4 SControl 30)
Sep 20 18:57:41 Rechner2 kernel: [ 7086.666446] ata1.00: link is slow to respond, please be patient (ready=0)
Sep 20 18:57:41 Rechner2 kernel: [ 7086.670440] ata2.00: link is slow to respond, please be patient (ready=0)
Sep 20 18:57:44 Rechner2 kernel: [ 7089.726477] ata1.00: SATA link up 6.0 Gbps (SStatus 133 SControl 330)
Sep 20 18:57:44 Rechner2 kernel: [ 7089.726492] ata1.01: SATA link up 3.0 Gbps (SStatus 123 SControl 330)
Sep 20 18:57:44 Rechner2 kernel: [ 7089.728998] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.CHN0.DRV1._GTF.DSSP], AE_NOT_FOUND (20180810/psargs-330)
Sep 20 18:57:44 Rechner2 kernel: [ 7089.729009] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.CHN0.DRV1._GTF, AE_NOT_FOUND (20180810/psparse-516)
Sep 20 18:57:44 Rechner2 kernel: [ 7089.758073] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.CHN0.DRV0._GTF.DSSP], AE_NOT_FOUND (20180810/psargs-330)
Sep 20 18:57:44 Rechner2 kernel: [ 7089.758085] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.CHN0.DRV0._GTF, AE_NOT_FOUND (20180810/psparse-516)
Sep 20 18:57:44 Rechner2 kernel: [ 7089.761016] ata1.00: configured for UDMA/133
Sep 20 18:57:44 Rechner2 kernel: [ 7089.763773] ata1.01: configured for UDMA/133
Sep 20 18:57:44 Rechner2 kernel: [ 7089.790462] ata2.00: SATA link up 6.0 Gbps (SStatus 133 SControl 330)
Sep 20 18:57:44 Rechner2 kernel: [ 7089.790475] ata2.01: SATA link up 3.0 Gbps (SStatus 123 SControl 330)
Sep 20 18:57:44 Rechner2 kernel: [ 7089.793148] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.CHN1.DRV1._GTF.DSSP], AE_NOT_FOUND (20180810/psargs-330)
Sep 20 18:57:44 Rechner2 kernel: [ 7089.793155] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.CHN1.DRV1._GTF, AE_NOT_FOUND (20180810/psparse-516)
Sep 20 18:57:44 Rechner2 kernel: [ 7089.820073] ACPI BIOS Error (bug): Could not resolve [\_SB.PCI0.SAT0.CHN1.DRV0._GTF.DSSP], AE_NOT_FOUND (20180810/psargs-330)
Sep 20 18:57:44 Rechner2 kernel: [ 7089.820079] ACPI Error: Method parse/execution failed \_SB.PCI0.SAT0.CHN1.DRV0._GTF, AE_NOT_FOUND (20180810/psparse-516)
Sep 20 18:57:44 Rechner2 kernel: [ 7089.823100] ata2.00: configured for UDMA/133
Sep 20 18:57:44 Rechner2 kernel: [ 7089.825922] ata2.01: configured for UDMA/133
Sep 20 18:57:44 Rechner2 kernel: [ 7089.858837] IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
Sep 20 18:57:44 Rechner2 kernel: [ 7089.859185] atl1c 0000:03:00.0: atl1c: enp3s0 NIC Link is Up<1000 Mbps Full Duplex>
Sep 20 18:57:44 Rechner2 kernel: [ 7089.859332] IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
Sep 20 18:57:44 Rechner2 kernel: [ 7089.860666] IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
Sep 20 18:57:44 Rechner2 kernel: [ 7089.862958] IPv6: ADDRCONF(NETDEV_CHANGE): enp3s0: link becomes ready
Irgendwann kurz danach meldet darktable dann fehlende openCL-Unterstützung und schaltet auf CPU zurück.
Dann erhalte ich:
Code: Alles auswählen
~$ clinfo
Number of platforms 0
(2 verschiedene Mainboards (1x ASUS, 1x Gigabyte), dieselbe GraKa, 1x Mint vor 3 Jahren, 1x debian 10.9 aktuell, selbe Symptomatik ... ganz so einfach scheint mir das mit dem openCL nicht wirklich zu sein)
Wie kann ich (wenn überhaupt) da weiterkommen?