From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 100067] [OpenCL] const int in argument list crashes build
Date: Thu, 09 Mar 2017 01:38:17 +0000 [thread overview]
Message-ID: <bug-100067-502-Bia3W88MXd@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-100067-502@http.bugs.freedesktop.org/>
[-- Attachment #1.1: Type: text/plain, Size: 7038 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=100067
--- Comment #1 from Mig <mastner@hotmail.com> ---
The same problem occurs when running the mat-mul example taken from
https://cgit.freedesktop.org/~tstellar/opencl-example
[mig@antergos-mig opencl-example]$ ./mat-mul
There are 1 platforms.
There are 1 GPU devices.
clCreateProgramWithSource() suceeded.
Speicherzugriffsfehler (Speicherabzug geschrieben)
When int is replaced with unsigned int the the program runs fine:
[mig@antergos-mig opencl-example]$ ./mat-mul
There are 1 platforms.
There are 1 GPU devices.
clCreateProgramWithSource() suceeded.
clBuildProgram() suceeded.
clCreateKernel() suceeded.
clSetKernelArg() succeeded.
clSetKernelArg() succeeded.
clSetKernelArg() succeeded.
clSetKernelArg() succeeded.
clSetKernelArg() succeeded.
clSetKernelArg() succeeded.
clSetKernelArg() succeeded.
50 94 178
60 120 220
Maybe it is related to the fact that the platform reports as 64bit adressspace:
(clinfo reports incorrectly the "Global memory size" beeing 7GB whereas it
shpuld report 2GB)
[mig@antergos-mig ~]$ clinfo
Number of platforms 1
Platform Name Clover
Platform Vendor Mesa
Platform Version OpenCL 1.1 Mesa 17.0.1
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix MESA
Platform Name Clover
Number of devices 1
Device Name AMD TONGA (DRM 3.8.0 /
4.9.11-1-ARCH, LLVM 3.9.1)
Device Vendor AMD
Device Vendor ID 0x1002
Device Version OpenCL 1.1 Mesa 17.0.1
Driver Version 17.0.1
Device OpenCL C Version OpenCL C 1.1
Device Type GPU
Device Profile FULL_PROFILE
Max compute units 28
Max clock frequency 990MHz
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 0 / 0 (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 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 7606060644 (7.084GiB)
Error Correction support No
Max memory allocation 1901515161 (1.771GiB)
Unified memory for Host and Device Yes
Minimum alignment for any data type 128 bytes
Alignment of base address 1024 bits (128 bytes)
Global Memory cache type None
Image support No
Local memory type Local
Local memory size 32768 (32KiB)
Max constant buffer size 1901515161 (1.771GiB)
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_global_int32_base_atomics cl_khr_global_int32_extended_atomics
cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics
cl_khr_byte_addressable_store cl_khr_fp64
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Clover
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [MESA]
clCreateContext(NULL, ...) [default] Success [MESA]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in
platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name Clover
Device Name AMD TONGA (DRM 3.8.0 /
4.9.11-1-ARCH, LLVM 3.9.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 AMD TONGA (DRM 3.8.0 /
4.9.11-1-ARCH, LLVM 3.9.1)
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.2.10
ICD loader Profile OpenCL 2.1
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 7902 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2017-03-09 1:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-05 18:53 [Bug 100067] [OpenCL] const int in argument list crashes build bugzilla-daemon
2017-03-09 1:38 ` bugzilla-daemon [this message]
2017-03-22 15:44 ` bugzilla-daemon
2017-03-22 15:44 ` bugzilla-daemon
2017-03-22 18:40 ` bugzilla-daemon
2017-03-22 18:41 ` bugzilla-daemon
2017-03-22 22:40 ` bugzilla-daemon
2017-03-23 18:10 ` bugzilla-daemon
2017-03-24 16:18 ` bugzilla-daemon
2017-03-24 16:20 ` bugzilla-daemon
2017-04-22 20:16 ` bugzilla-daemon
2017-04-24 11:19 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-100067-502-Bia3W88MXd@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).