4.5. Porting and Integration - 5.2 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2025-12-29
Version
5.2 English

The application written for MKL, OpenBLAS or any other library using standard BLAS or CBLAS interfaces can be ported to AOCL-BLAS with minimal or no changes.

Complete the following steps to port from BLAS or CBLAS to AOCL-BLAS:

  1. Update the source code to include the correct header files.

  2. Update the build script or makefile to use the correct compiler and linker options.

The following table lists the compiler and linker options to use while porting to AOCL-BLAS:

Table 4.10 Porting to AOCL-BLAS#

MKL

OpenBLAS

AOCL-BLAS

AOCL-BLAS

Single-threaded

Multi-threaded

Header File

mkl.h

cblas.h

blis.h/cblas.h

blis.h/cblas.h

Link Options

-lmkl_intel_lp64 -lmkl_core -lmkl_blacs_intelmpi_ilp64 -lmkl_intel_thread

-lopenblas

-lm -lblis -lpthread

-lm -fopenmp -lblis-mt