From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 100067] [OpenCL] const int in argument list crashes build
Date: Wed, 22 Mar 2017 22:40:43 +0000 [thread overview]
Message-ID: <bug-100067-502-J3RA7OD6pM@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-100067-502@http.bugs.freedesktop.org/>
[-- Attachment #1.1: Type: text/plain, Size: 3035 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=100067
--- Comment #5 from Mig <mastner@hotmail.com> ---
minimal.cpp compiled with
gcc -c minimal.cpp -g -o minimal.o
[miguel@antergos-mig extra]$ gdb
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) file ./minimal
Reading symbols from ./minimal...done.
(gdb) b 20
Breakpoint 1 at 0x400cee: file minimal.cpp, line 20.
(gdb) run
Starting program:
/home/miguel/Dokumente/OpenCLExamples/myGEMM-master/extra/minimal
>>> Initializing OpenCL...
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffef7f8700 (LWP 3517)]
[New Thread 0x7fffeedf2700 (LWP 3518)]
[New Thread 0x7fffee5f1700 (LWP 3519)]
[New Thread 0x7fffeddf0700 (LWP 3520)]
[New Thread 0x7fffed5ef700 (LWP 3521)]
% Device: AMD TONGA (DRM 3.9.0 / 4.10.4-1-ARCH, LLVM 3.9.1), 2046.3 MiB memory,
max allocation 1432.4 MiB, driver 17.0.1
Thread 1 "minimal" received signal SIGSEGV, Segmentation fault.
0x00007ffff2b9eb18 in llvm::SIInstrInfo::getInstSizeInBytes(llvm::MachineInstr
const&) const ()
from /usr/lib/libLLVM-3.9.so
(gdb)
Also when I compile minimal.cl with
clang -x cl -target amdgcn-- -mcpu=tonga -Dcl_clang_storage_class_specifiers=1
-Xclang -mlink-bitcode-file -Xclang /usr/local/lib/clc/tonga-amdgcn--.bc
-I/usr/local/include/clc -include /usr/local/include/clc/clc.h minimal.cl
'+fp64-fp16-denormals' is not a recognized feature for this target (ignoring
feature)
'+fp64-fp16-denormals' is not a recognized feature for this target (ignoring
feature)
minimal.cl:2:15: error: unsupported call to function get_global_id.3
__kernel void myGEMM1(const int M,
^
minimal.cl:2:15: error: unsupported call to function get_global_id.3
clang-3.9:
/home/miguel/Downloads/llvm-3.9.1.src/lib/Target/AMDGPU/SIInstrInfo.cpp:2428:
void llvm::SIInstrInfo::legalizeOperands(llvm::MachineInstr&) const: Assertion
`MBB.getParent()->getSubtarget<SISubtarget>().getGeneration() <
SISubtarget::VOLCANIC_ISLANDS && "FIXME: Need to emit flat atomics here"'
failed.
#0 0x00007efe68ec1662 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/home/miguel/Downloads/llvm-3.9.1.src/lib/Support/Unix/Signals.inc:402:0
...
I get errors.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 4160 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-22 22:40 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
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 [this message]
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-J3RA7OD6pM@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).