From owner-freebsd-stable@freebsd.org Sun Sep 9 06:12:52 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8DE25108C23F; Sun, 9 Sep 2018 06:12:52 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-vk1-f193.google.com (mail-vk1-f193.google.com [209.85.221.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 341CD872D1; Sun, 9 Sep 2018 06:12:52 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: by mail-vk1-f193.google.com with SMTP id b78-v6so2247271vka.12; Sat, 08 Sep 2018 23:12:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DPtrjNS2g8xBj3NtgcL63OQXasUMEkP7R9dbpOOKUOM=; b=inNep0RzvQ3bpxrgz+1m2B/DkJdmlvAZrP5VI0qVVd0AouY2iJY+XmOLztgLwnQNt7 T5Me0rnsIoAiOzlMdF/QQFC0jJ5HvCMHziXYdXgCowKhCu6ejbie8InLFi3NMSb3U/dv 96F4H65T7hEfjYJNw99fYvmPLoNXtdkbsPxcMiu9lzYoF8/oEfv9ZMa5Yilf+uvSNwNa Q+oWQSsue1cuJlq6ptmqhV8G9HXNisdt5t6GESrbCfjaG4xkETa4C8dhMENqi9AZEjb1 R5uwqM5N9/NZAzcuqXM9PJc2FH2HWjkmnqX4zD1/cZ/7NQ3BTyJHcuGHYWQAW/9ptDVw MIhg== X-Gm-Message-State: APzg51CckSGs1MW7LGOrmTVmNJky1inIplQnjivkdYf9QmthoPkU7i4Y qgQdj3XkJ+LLRBDuz4OILrXTeiYETcAsTNqaNnqkMoqR X-Google-Smtp-Source: ANB0VdZvJtj8RJ4502myW423NvblOONuAB5s2jtydAPLxRa7OGn/0KQ2H6mW99WM8ggEhIXOODqVLZCImigTC8Bm2gs= X-Received: by 2002:a1f:2cce:: with SMTP id s197-v6mr4172856vks.106.1536448236778; Sat, 08 Sep 2018 16:10:36 -0700 (PDT) MIME-Version: 1.0 References: <20180902114502.e59ab940d98cd43cd6f1ca11@sohara.org> In-Reply-To: From: CeDeROM Date: Sun, 9 Sep 2018 01:10:24 +0200 Message-ID: Subject: Re: FreeBSD OpenCL/CUDA nVidia To: "Steve O'Hara-Smith" , cpghost@cordula.ws Cc: galtsev@kicp.uchicago.edu, FreeBSD Questions Mailing List , FreeBSD Stable , freebsd-x11@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Sep 2018 06:12:52 -0000 Just to conclude: NVIDIA SUX - just as most of you stated no support from nVidia to Open-Source and more interesting OpenCL applications of their GPU - after almost 15 years of being loyal customer (purchased 5+ cards and recommended to others) I say GOODBYE NVIDIA WILL NOT RECOMMEND YOU TO ANYONE ANYMORE! ATI/AMD RADEON ROX - I have just bought RADEON RX 580 and OpenCL seems available here - HELLO AMD RADEON - you have just re-gained old customer I missed your smooth edges and better colors :-) # clinfo Number of platforms 2 Platform Name Clover Platform Vendor Mesa Platform Version OpenCL 1.1 Mesa 18.1.5 Platform Profile FULL_PROFILE Platform Extensions cl_khr_icd Platform Extensions function suffix MESA Platform Name Portable Computing Language Platform Vendor The pocl project Platform Version OpenCL 2.0 pocl 0.14, LLVM 4.0.1 Platform Profile FULL_PROFILE Platform Extensions cl_khr_icd Platform Extensions function suffix POCL Platform Name Clover Number of devices 1 Device Name Radeon RX 580 Series (POLARIS10, DRM 3.8.0, 11.2-RELEASE-p2, LLVM 6.0.1) Device Vendor AMD Device Vendor ID 0x1002 Device Version OpenCL 1.1 Mesa 18.1.5 Driver Version 18.1.5 Device OpenCL C Version OpenCL C 1.1 Device Type GPU Device Profile FULL_PROFILE Max compute units 36 Max clock frequency 1366MHz Max work item dimensions 3 Max work item sizes 256x256x256 Max work group size 256 Preferred work group size multiple 64 Preferred / native vector sizes char 16 / 16 short 8 / 8 int 4 / 4 long 2 / 2 half 8 / 8 (cl_khr_fp16) float 4 / 4 double 2 / 2 (cl_khr_fp64) Half-precision Floating-point support (cl_khr_fp16) Denormals No Infinity and NANs Yes Round to nearest Yes Round to zero No Round to infinity No IEEE754-2008 fused multiply-add No Support is emulated in software No Correctly-rounded divide and sqrt operations No Single-precision Floating-point support (core) Denormals No Infinity and NANs Yes Round to nearest Yes Round to zero No Round to infinity No IEEE754-2008 fused multiply-add No Support is emulated in software No Correctly-rounded divide and sqrt operations No 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 Correctly-rounded divide and sqrt operations No Address bits 64, Little-Endian Global memory size 8552468480 (7.965GiB) Error Correction support No Max memory allocation 7697221632 (7.169GiB) Unified memory for Host and Device No Minimum alignment for any data type 128 bytes Alignment of base address 32768 bits (4096 bytes) Global Memory cache type None Image support No Local memory type Local Local memory size 32768 (32KiB) Max constant buffer size 2147483647 (2GiB) Max number of constant args 16 Max size of kernel argument 1024 Queue properties Out-of-order execution No Profiling Yes Profiling timer resolution 0ns Execution capabilities Run OpenCL kernels Yes Run native kernels No Device Available Yes Compiler Available Yes Device Extensions cl_khr_byte_addressable_store 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_fp64 cl_khr_fp16 Platform Name Portable Computing Language Number of devices 1 Device Name AMD Phenom(tm) II X6 1090T Processor Device Vendor pocl Device Vendor ID 0x1002 Device Version OpenCL 2.0 pocl HSTR: pthread-x86_64-portbld-freebsd11.1-westmere Driver Version 0.14 Device OpenCL C Version OpenCL C 2.0 Device Type CPU, Default Device Profile FULL_PROFILE Max compute units 6 Max clock frequency 3200MHz Device Partition (core) Max number of sub-devices 6 Supported partition types equally, by counts Max work item dimensions 3 Max work item sizes 4096x4096x4096 Max work group size 4096 Preferred work group size multiple 8 Preferred / native vector sizes char 16 / 16 short 8 / 8 int 4 / 4 long 2 / 2 half 8 / 8 (n/a) float 4 / 4 double 2 / 2 (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 No Round to infinity No IEEE754-2008 fused multiply-add No Support is emulated in software No Correctly-rounded divide and sqrt operations No Double-precision Floating-point support (cl_khr_fp64) Denormals No Infinity and NANs Yes Round to nearest Yes Round to zero No Round to infinity No IEEE754-2008 fused multiply-add No Support is emulated in software No Correctly-rounded divide and sqrt operations No Address bits 64, Little-Endian Global memory size 19033886720 (17.73GiB) Error Correction support No Max memory allocation 19033886720 (17.73GiB) Unified memory for Host and Device Yes Shared Virtual Memory (SVM) capabilities (core) Coarse-grained buffer sharing Yes Fine-grained buffer sharing Yes Fine-grained system sharing No Atomics Yes Minimum alignment for any data type 128 bytes Alignment of base address 1024 bits (128 bytes) Preferred alignment for atomics SVM 0 bytes Global 0 bytes Local 0 bytes Max size for global variable 0 Preferred total size of global vars 0 Global Memory cache type Read/Write Global Memory cache size 65536 Global Memory cache line 64 bytes Image support Yes Max number of samplers per kernel 16 Max size for 1D images from buffer 1189617920 pixels Max 1D or 2D image array size 2048 images Max 2D image size 32768x32768 pixels Max 3D image size 2048x2048x2048 pixels Max number of read image args 128 Max number of write image args 128 Max number of read/write image args 128 Max number of pipe args 16 Max active pipe reservations 1 Max pipe packet size 1024 Local memory type Global Local memory size 19033886720 (17.73GiB) Max constant buffer size 19033886720 (17.73GiB) Max number of constant args 8 Max size of kernel argument 1024 Queue properties (on host) Out-of-order execution No Profiling Yes Queue properties (on device) Out-of-order execution Yes Profiling Yes Preferred size 16384 (16KiB) Max size 262144 (256KiB) Max queues on device 1 Max events on device 1024 Prefer user sync for interop Yes Profiling timer resolution 1ns Execution capabilities Run OpenCL kernels Yes Run native kernels Yes SPIR versions 1.2 printf() buffer size 1048576 (1024KiB) Built-in kernels Device Available Yes Compiler Available Yes Linker Available Yes Device Extensions cl_khr_byte_addressable_store 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_spir cl_khr_int64 cl_khr_fp64 cl_khr_int64_base_atomics cl_khr_int64_extended_atomics NULL platform behavior clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Clover clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [MESA] clCreateContext(NULL, ...) [default] Success [MESA] clCreateContext(NULL, ...) [other] Success [POCL] clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1) Platform Name Clover Device Name Radeon RX 580 Series (POLARIS10, DRM 3.8.0, 11.2-RELEASE-p2, LLVM 6.0.1) 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 (1) Platform Name Clover Device Name Radeon RX 580 Series (POLARIS10, DRM 3.8.0, 11.2-RELEASE-p2, LLVM 6.0.1) 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 NOTE: your OpenCL library declares to support OpenCL 2.2, but it seems to support up to OpenCL 2.1 only. Segmentation fault (core dumped) <--- ;-) Except DRM and AMDGPU firmware it still needs some more tweaking, but this is clearly a proof of hardware vendor support for Open-Source Community :-) "It's not Open-Source if not runs on FreeBSD"^TM :-) Thank you folks! :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info