cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

matszpk
Adept III

CodeXLAnalyzer fails building for OpenCL2.0 compliant devices when only available online non-OpenCL 2.0 device

Hi, I tried to compile with using CodeXLAnalyzer simple OpenCL code using OpenCL 2.0 standard for an OpenCL2.0 compliant device (for example Hawaii). I have only Radeon HD 7850 (OpenCL 1.2 compliant device) and that program returns following error after failed compilation:

AMD Catalyst detected, version 14.501.1003

Compiling device: Tonga... ...Failed!

OpenCL Compile Error: clBuildProgram failed (CL_BUILD_PROGRAM_FAILURE).

An invalid option was specified.

--------

I ran CodeXLAnalyzer with options:

./CodeXLAnalyzer --bin localtest1 --OpenCLoption="-cl-std=CL2.0" -c Hawaii localtest1.cl

localtest1.cl is sample OpenCL 1.2 code (can be build on OpenCL 1.2 devices).

My platform is: OpenSUSE Linux (64-bit), Amd drivers: 14.12 (omega).

I guess that is problem with AMD Catalyst drivers. I will be happy, if this problem will be resolved in near future.

0 Likes
1 Solution
matszpk
Adept III

Problem has been solved after installation latest  Catalyst 15.7.

View solution in original post

0 Likes
3 Replies
dorono
Staff

Hi,

CodeXL 1.7 Static Analyzer does not support build of OpenCL 2.0 kernels. This will be added in a future release.

Doron

0 Likes

Thank you for answer. I am still using CodeXL 1.6. But, Can the AMD Catalyst 14.12 build an OpenCL 2.0 kernels for an offline devices (ofcourse when only OpenCL1.2 device available and with using context with CL_CONTEXT_OFFLINE_DEVICES_AMD)?

0 Likes
matszpk
Adept III

Problem has been solved after installation latest  Catalyst 15.7.

0 Likes