patch Add_CL_DEVICE_BOARD_NAME_AMD

This commit is contained in:
greatpanc 2021-11-22 19:44:59 +08:00
parent 03536f1eeb
commit e6f1a015ca
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
%global date 2020.12.18
Name: opencl-clhpp
Version: 2.0.12
Release: 5
Release: 6
Summary: OpenCL (Open Computing Language) bind cpp header files.
License: Apache-2.0
URL: https://github.com/KhronosGroup/OpenCL-CLHPP
@ -13,7 +13,7 @@ Source4: https://github.com/ThrowTheSwitch/CException/archive/refs/t
BuildArch: noarch
BuildRequires: gcc-c++ cmake >= 3.14.0 ocl-icd rubygems ruby python
BuildRequires: gcc-c++ cmake >= 3.14.0 ocl-icd rubygems ruby python git
Provides: bundled(grpc)
@ -33,6 +33,8 @@ mv %{_builddir}/OpenCL-CLHPP-%{version}/external/CMock/vendor/Unity/* %{_builddi
%build
ln -s /usr/lib64/libOpenCL.so.1 %{_builddir}/OpenCL-CLHPP-%{version}/libOpenCL.so
git apply 0001-Add_CL_DEVICE_BOARD_NAME_AMD.patch
rm -rf build
mkdir build
cd build
@ -55,6 +57,9 @@ make test
/usr/local/include/CL/cl2.hpp
%changelog
* Tue Nov 12 2021 yinchangpan <yinchangpan2@huawei.com> - v2.12.0-6
- patch 0001-Add_CL_DEVICE_BOARD_NAME_AMD
* Tue Nov 12 2021 yinchangpan <yinchangpan2@huawei.com> - v2.12.0-5
- Add Make Test Check

Binary file not shown.