Bug 30010

Summary: OpenCL-Headers update request
Product: Mageia Reporter: Aurelian R <arusanu>
Component: RPM PackagesAssignee: David GEIGER <geiger.david68210>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: opencl-headers-2.2-0.20200218.1.mga8 CVE:
Status comment:
Attachments: spec file
script to get source files
patch for pkgconfig
patch for HeadersCpp
spec file
spec updated as of date 2022/02/08
2022/02/08-pkgconfig patch
2022/02/08- patch for HeadersCpp

Description Aurelian R 2022-02-07 19:41:46 CET
Created attachment 13117 [details]
spec file

Update request for OpenCL-Headers stack to API 3.0.
The reason is that the present package in Couldron is still API 2.2 while Khronos OpenCL API 3.0 standard has been around for almost 2 years. While Mageia's packages are still fine, it will be good to have this updated in Cauldron as future proof. Khronos plans a full OpenCL-SDK support but it is not ready yet, until then, Mageia's opencl stack still has to be mangled together.

To kick start it, I will attach spec/patches/script files that have been tested only on a x86_64 system in 32/64bit modes.
These changes are:
- update script to use OpenCL-Headers git source which enables
  CMake OpenCL::Headers configuration files.
- add support for CMake OpenCL::HeadersCpp configuration.
- include option for ctest check( for OpenCL::Headers only) at build time.
  Note: building tests for OpenCL::HeadersCpp needs Khronos OpenCL-SDK...
- add pkg-config support.
Additionally, will attach also a spec file for ocl-icd package modified to use the pkg-config of opencl-headers package and run additional tests for OpenCL::Headers stack at build time.
Hope it will help someone,
Regards.
Comment 1 Aurelian R 2022-02-07 19:42:53 CET
Created attachment 13118 [details]
script to get source files
Comment 2 Aurelian R 2022-02-07 19:43:38 CET
Created attachment 13119 [details]
patch for pkgconfig
Comment 3 Aurelian R 2022-02-07 19:44:14 CET
Created attachment 13120 [details]
patch for HeadersCpp
Comment 4 Aurelian R 2022-02-07 19:44:55 CET
Created attachment 13121 [details]
spec file
Comment 5 Lewis Smith 2022-02-07 20:22:05 CET
Thank you for the suggestion, and your prepratory work.

This package has no registered maintainer, but DavidG did the update to 2.2 API, so please excuse me for assigning this to you!

Assignee: bugsquad => geiger.david68210

Comment 6 Aurelian R 2022-02-08 22:59:04 CET
Created attachment 13122 [details]
spec updated as of date 2022/02/08

Attachment 13117 is obsolete: 0 => 1

Comment 7 Aurelian R 2022-02-08 23:00:30 CET
Created attachment 13123 [details]
2022/02/08-pkgconfig patch

Attachment 13119 is obsolete: 0 => 1

Comment 8 Aurelian R 2022-02-08 23:01:30 CET
Created attachment 13124 [details]
2022/02/08- patch for HeadersCpp

Attachment 13120 is obsolete: 0 => 1

Comment 9 David GEIGER 2023-01-31 19:14:54 CET
opencl-headers now updated to latest upstream 3.0-2022.09.30 release!
Comment 10 David GEIGER 2023-01-31 19:30:56 CET
Closing as fixed!

Resolution: (none) => FIXED
Status: NEW => RESOLVED