Skip to contentSkip to conversation

New: OpenCL not working on radeon hainan

Bug 82709 [email protected] 1 participant 8 messages Aug 16, 2014 – Aug 22, 2014

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=82709

Priority: medium
Bug ID: 82709
Assignee: [email protected]
Summary: OpenCL not working on radeon hainan
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Status: NEW
Version: git
Component: Drivers/Gallium/radeonsi
Product: Mesa

OpenCL not working on Radeon HD 8690M card which has Hainan chip.

example hello world application shows this error log:

Build Log:
error: unknown target CPU 'hainan'

haagch on #dri-devel suggested me to:

$ sudo sed -i "s/tahiti/hainan/" /usr/lib/libMesaOpenCL.so

and after this "fix" I got:

Build Log:
fatal error: cannot open file '/usr/lib/clc/hainan-r600--.bc': No such file or directory

After that he suggested me to renaming tahiti-r600--.bc to hainan-r600--.bc which fixed that problem and OpenCL started working.

So problem is probably in clang and libclc -- that there is missing hainan name in cpu table.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 82709] OpenCL not working on radeon hainan

https://bugs.freedesktop.org/show_bug.cgi?id=82709

--- Comment #1 from Tom Stellard <[email protected]> --- Created attachment 104915
--> https://bugs.freedesktop.org/attachment.cgi?id=104915&action=edit
Work around for missing Hainan in clang

Does it work with this Mesa patch?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 82709] OpenCL not working on radeon hainan

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=82709

--- Comment #2 from Ilia Mirkin <[email protected]> --- (In reply to comment #1)

Quoted 4 lines

Created attachment 104915 [details] [review]
Work around for missing Hainan in clang

Does it work with this Mesa patch?

missing break...

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 82709] OpenCL not working on radeon hainan

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=82709

Pali Rohár <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #3 from Pali Rohár <[email protected]> ---
I added missing break after both gpu = lines, recompiled mesa with that patch and opencl examples started working without above sed and symlink hacks.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 82709] OpenCL not working on radeon hainan

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=82709

Tom Stellard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Tom Stellard <[email protected]> --- Fixed in git commit 8109664dedee588dc98c9a7c25bd40c0eb56c35f

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 82709] OpenCL not working on radeon hainan

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=82709

--- Comment #5 from Pali Rohár <[email protected]> --- @Tom Stellard: Are you going to fix this problem in llvm/clang/libclc?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 82709] OpenCL not working on radeon hainan

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=82709

--- Comment #6 from Alex Deucher <[email protected]> --- (In reply to comment #5)

Quoted 1 line

@Tom Stellard: Are you going to fix this problem in llvm/clang/libclc?

IIRC, it's already working with newer versions of clang.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 82709] OpenCL not working on radeon hainan

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=82709

--- Comment #7 from Tom Stellard <[email protected]> --- (In reply to comment #5)

Quoted 1 line

@Tom Stellard: Are you going to fix this problem in llvm/clang/libclc?

Yes, it's fixed in llvm/clang 3.6 and I'll try to backport the patch for llvm/clang 3.5.1.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel