Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1644863 - [libclc] OCL kernel compilation fails on amd GCN GPUs
Summary: [libclc] OCL kernel compilation fails on amd GCN GPUs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libclc
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fabian Deutsch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-31 18:31 UTC by Jan Vesely
Modified: 2018-12-06 03:57 UTC (History)
5 users (show)

Fixed In Version: libclc-0.2.0-13.git1ecb16d.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-06 03:57:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Vesely 2018-10-31 18:31:59 UTC
Description of problem: ocl program compilation fails

Version-Release number of selected component (if applicable):
libclc-0.2.0-12.gitc45b9df.fc29.x86_64

How reproducible:
Always

Steps to Reproduce:
1. clinfo

Actual results:
program crashes with the following error message.
Intrinsic has incorrect return type!
i8 addrspace(2)* ()* @llvm.amdgcn.dispatch.ptr

Expected results:
no crash

Additional info:
libclc needs to be rebuilt against llvm-7 which is now used by mesa:
Device Name                                AMD Radeon R7 Graphics (CARRIZO, DRM 3.26.0, 4.18.16-300.fc29.x86_64, LLVM 7.0.0)

Comment 1 Vedran Miletić 2018-11-13 18:39:03 UTC
Confirmed on

00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri [Radeon R5 Graphics] [1002:1315]

as clinfo fails with:

Intrinsic has incorrect return type!
i8 addrspace(2)* ()* @llvm.amdgcn.dispatch.ptr
Intrinsic has incorrect return type!
i8 addrspace(2)* ()* @llvm.amdgcn.dispatch.ptr
Intrinsic has incorrect return type!
i8 addrspace(2)* ()* @llvm.amdgcn.dispatch.ptr
Intrinsic has incorrect return type!
i8 addrspace(2)* ()* @llvm.amdgcn.implicitarg.ptr
LLVM ERROR: Broken function found, compilation aborted!

Comment 2 Jeff lats 2018-11-15 03:07:00 UTC
Confirmed on

Radeon RX 550 Series (POLARIS12, DRM 3.26.0, 4.18.17-300.fc29.x86_64, LLVM 7.0.0)

Intrinsic has incorrect return type!
i8 addrspace(2)* ()* @llvm.amdgcn.dispatch.ptr
Intrinsic has incorrect return type!
i8 addrspace(2)* ()* @llvm.amdgcn.dispatch.ptr
Intrinsic has incorrect return type!
i8 addrspace(2)* ()* @llvm.amdgcn.dispatch.ptr
Intrinsic has incorrect return type!
i8 addrspace(2)* ()* @llvm.amdgcn.implicitarg.ptr
LLVM ERROR: Broken function found, compilation aborted!

Comment 3 Jeff lats 2018-11-29 10:29:10 UTC
Thought I would try downgrading it but it looks like I would need to back-out the whole of FC29, so it seems that this bug has been in FC29 since release.

Comment 4 Fedora Update System 2018-12-04 00:13:49 UTC
libclc-0.2.0-13.git1ecb16d.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-277e4ed0d5

Comment 5 Fedora Update System 2018-12-05 03:53:51 UTC
libclc-0.2.0-13.git1ecb16d.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-277e4ed0d5

Comment 6 Fedora Update System 2018-12-06 03:57:06 UTC
libclc-0.2.0-13.git1ecb16d.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.