[clblas] fix arm build (#27092)

This commit is contained in:
autoantwort 2022-10-06 00:06:50 +02:00 committed by GitHub
parent afb70b3cae
commit b533da1ea3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 34 additions and 3 deletions

View File

@ -0,0 +1,24 @@
diff --git a/src/library/blas/gens/gemv.c b/src/library/blas/gens/gemv.c
index 9835482..8bf3476 100644
--- a/src/library/blas/gens/gemv.c
+++ b/src/library/blas/gens/gemv.c
@@ -21,6 +21,7 @@
#include <string.h>
#include <stdio.h>
+#include <stdlib.h> // for abs(int)
#include <assert.h>
#include <math.h>
#include <clblas_stddef.h>
diff --git a/src/library/blas/gens/symv.c b/src/library/blas/gens/symv.c
index 47c8f1d..31ab3c5 100644
--- a/src/library/blas/gens/symv.c
+++ b/src/library/blas/gens/symv.c
@@ -21,6 +21,7 @@
#include <string.h>
#include <stdio.h>
+#include <stdlib.h> // for abs(int)
#include <assert.h>
#include <math.h>
#include <clblas_stddef.h>

View File

@ -7,6 +7,7 @@ vcpkg_from_github(
PATCHES
cmake.patch
Fix-BuildDLL.patch
abs-arm.patch
)
# v2.12 has a very old FindOpenCL.cmake using OPENCL_ vs. OpenCL_ var names

View File

@ -1,8 +1,10 @@
{
"name": "clblas",
"version": "2.12",
"port-version": 6,
"port-version": 7,
"description": "clBLAS is an OpenCL 1.2 accelerated BLAS (Basic Linear Algebra Subsystem) library.",
"license": "Apache-2.0",
"supports": "!(windows & arm)",
"dependencies": [
"opencl",
{

View File

@ -131,7 +131,6 @@ civetweb:arm64-windows = skip
civetweb:arm-uwp = skip
civetweb:x64-uwp = skip
clamav:arm64-windows=fail
clblas:arm64-windows=fail
clockutils:x64-linux=fail
cmcstl2:arm64-windows = skip
cmcstl2:arm-uwp = skip

View File

@ -1442,7 +1442,7 @@
},
"clblas": {
"baseline": "2.12",
"port-version": 6
"port-version": 7
},
"clblast": {
"baseline": "1.5.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "68caca1b774b1896768237791456b8962aa28d54",
"version": "2.12",
"port-version": 7
},
{
"git-tree": "a94b503ed4a4a74fa316ac65c363968092a0b026",
"version": "2.12",