commit | author | age
|
e40225
|
1 |
# |
AL |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.illumos.org/license/CDDL. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
c602d3
|
21 |
# Copyright (c) 2014-2017, Aurelien Larcher. All rights reserved. |
492a13
|
22 |
# Copyright (c) 2022 Niklas Poslovski |
e40225
|
23 |
# |
492a13
|
24 |
BUILD_STYLE= justmake |
e40225
|
25 |
include ../../../make-rules/shared-macros.mk |
AL |
26 |
|
|
27 |
COMPONENT_NAME= openblas |
65e44e
|
28 |
COMPONENT_VERSION= 0.3.27 |
e40225
|
29 |
COMPONENT_SUMMARY= Optimized BLAS library based on GotoBLAS2 |
21f561
|
30 |
COMPONENT_SRC= OpenBLAS-$(COMPONENT_VERSION) |
AW |
31 |
COMPONENT_PROJECT_URL= https://www.openblas.net |
|
32 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
65e44e
|
33 |
COMPONENT_ARCHIVE_HASH= sha256:aa2d68b1564fe2b13bc292672608e9cdeeeb6dc34995512e65c3b10f4599e897 |
21f561
|
34 |
COMPONENT_ARCHIVE_URL= https://github.com/xianyi/OpenBLAS/archive/refs/tags/v$(COMPONENT_VERSION).tar.gz |
AW |
35 |
COMPONENT_FMRI= library/math/openblas |
|
36 |
COMPONENT_CLASSIFICATION= Development/High Performance Computing |
|
37 |
COMPONENT_LICENSE= BSD 3-Clause |
|
38 |
COMPONENT_LICENSE_FILE= LICENSE |
e40225
|
39 |
|
492a13
|
40 |
# Numerical libraries should be shipped as static libs as it is still common in scientific computing projects |
NP |
41 |
# See discussion here: https://github.com/OpenIndiana/oi-userland/pull/9459 |
|
42 |
DROP_STATIC_LIBRARIES= no |
|
43 |
|
21f561
|
44 |
TEST_TARGET= $(NO_TESTS) |
492a13
|
45 |
include $(WS_MAKE_RULES)/common.mk |
e40225
|
46 |
|
21f561
|
47 |
PATH= $(PATH.gnu) |
e40225
|
48 |
|
f9bfba
|
49 |
# In a virtualized environment getarch cannot detect the architecture. |
AL |
50 |
# It falls back to INTEL_UKNOWN which causes failure of the build. |
|
51 |
# The option TARGET=GENERIC has to be passed to force detection. |
e40225
|
52 |
COMPONENT_BUILD_GMAKE_ARGS= PREFIX=$(USRDIR) \ |
AL |
53 |
DYNAMIC_ARCH=1 \ |
f9bfba
|
54 |
TARGET=PRESCOTT \ |
e40225
|
55 |
BINARY=$(BITS) \ |
c602d3
|
56 |
CROSS_SUFFIX="" \ |
e40225
|
57 |
FC=$(FC) CC=$(CC) \ |
AL |
58 |
COMMON_OPT="$(CFLAGS) -Wa,--divide" \ |
f9bfba
|
59 |
NO_LAPACKE=1 \ |
e40225
|
60 |
USE_OPENMP=0 \ |
AL |
61 |
USE_THREAD=1 \ |
492a13
|
62 |
NUM_THREADS=64 \ |
NP |
63 |
EXTRALIB=-lm |
e40225
|
64 |
|
492a13
|
65 |
COMPONENT_INSTALL_ARGS= PREFIX=$(PROTOUSRDIR) MACHDIR=$(MACH64) |
e40225
|
66 |
|
c602d3
|
67 |
# Auto-generated dependencies |
AL |
68 |
REQUIRED_PACKAGES += system/library |
492a13
|
69 |
REQUIRED_PACKAGES += system/library/math |