Skip to content

Commit c5e6f88

Browse files
committed
Include LP64/ILP64 in BLIS binary name
Binary name will be chosen based on multi-threading and BLAS integer size configuration as given below. libblis-[mt]-lp64 - when configured to use 32 bit integers libblis-[mt]-ilp64 - when configured to use 64 bit integers AMD-Internal: [CPUPL-1879] Change-Id: I865023c63235a0a72bdfce7057b2cfb8158b1d87
1 parent ea748b8 commit c5e6f88

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

build/config.mk.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# libraries.
66
#
77
# Copyright (C) 2014, The University of Texas at Austin
8+
# Copyright (C) 2021, Advanced Micro Devices, Inc. All rights reserved.
89
#
910
# Redistribution and use in source and binary forms, with or without
1011
# modification, are permitted provided that the following conditions are
@@ -200,5 +201,8 @@ MK_COMPLEX_RETURN_SCHEME := @complex_return@
200201
# Status of aocl dynamic configuration
201202
MK_ENABLE_AOCL_DYNAMIC := @enable_aocl_dynamic@
202203

204+
# BLAS int size
205+
MK_BLAS_INT_TYPE_SIZE := @blas_int_type_size@
206+
203207
# end of ifndef CONFIG_MK_INCLUDED conditional block
204208
endif

common.mk

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#
22
#
3-
# BLIS
3+
# BLIS
44
# An object-based framework for developing high-performance BLAS-like
55
# libraries.
66
#
77
# Copyright (C) 2014, The University of Texas at Austin
8-
# Copyright (C) 2020, Advanced Micro Devices, Inc.
8+
# Copyright (C) 2020-2021, Advanced Micro Devices, Inc. All rights reserved.
99
#
1010
# Redistribution and use in source and binary forms, with or without
1111
# modification, are permitted provided that the following conditions are
@@ -411,9 +411,17 @@ BASE_LIB_PATH := $(LIB_PATH)
411411

412412
# The base name of the BLIS library that we will build.
413413
ifeq ($(THREADING_MODEL),off)
414-
LIBBLIS := libblis
414+
ifeq ($(MK_BLAS_INT_TYPE_SIZE), 64)
415+
LIBBLIS := libblis-ilp64
415416
else
416-
LIBBLIS := libblis-mt
417+
LIBBLIS := libblis-lp64
418+
endif
419+
else
420+
ifeq ($(MK_BLAS_INT_TYPE_SIZE), 64)
421+
LIBBLIS := libblis-mt-ilp64
422+
else
423+
LIBBLIS := libblis-mt-lp64
424+
endif
417425
endif
418426

419427
# The shared (dynamic) library file suffix is different for Linux and OS X.

configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# libraries.
66
#
77
# Copyright (C) 2014, The University of Texas at Austin
8-
# Copyright (C) 2020-2021, Advanced Micro Devices, Inc.
8+
# Copyright (C) 2020-2021, Advanced Micro Devices, Inc. All rights reserved.
99
#
1010
# Redistribution and use in source and binary forms, with or without
1111
# modification, are permitted provided that the following conditions are
@@ -3369,6 +3369,7 @@ main()
33693369
| sed -e "s/@enable_trsm_preinversion@/${enable_trsm_preinversion}/g" \
33703370
| sed -e "s/@enable_aocl_dynamic@/${enable_aocl_dynamic}/g" \
33713371
| sed -e "s/@complex_return@/${complex_return}/g" \
3372+
| sed -e "s/@blas_int_type_size@/${blas_int_type_size}/g" \
33723373
> "${config_mk_out_path}"
33733374

33743375

0 commit comments

Comments
 (0)