Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 6/24/2024
Public
Document Table of Contents

qmkl-sycl-impl, Qmkl-sycl-impl

Lets you link to one or more specific Intel® oneAPI Math Kernel (oneMKL) SYCL libraries.

Syntax

Linux:

-qmkl-sycl-impl=arg[, arg,...]

Windows:

/Qmkl-sycl-impl:arg[, arg,...]

Arguments

arg

Tells the compiler which oneMKL* SYCL-specific library to link to. Possible values are:

blas

Links to the BLAS SYCL library.

dft

Links to the Discrete Fourier Transform (DFT) SYCL library.

lapack

Links to the LAPACK SYCL library.

rng

Links to the Random Number Generator (RNG) SYCL library.

sparse

Links to the Sparse BLAS SYCL library.

stats

Links to the Summary Statistic SYCL library.

vm

Links to the Vector Mathematics (VM) SYCL library.

Default

OFF

You must specify this option to link to a specific oneMKL* SYCL library.

Description

This option lets you link to one or more specific Intel® oneAPI Math Kernel (oneMKL) SYCL libraries.

It is not supported for static linking.

NOTE:

When using this option, you must also specify option -fsycl and -qmkl (Linux) or /Qmkl (Windows).

For information about available SYCL drivers, refer to Invoke the Compiler.

IDE Equivalent

None

Alternate Options

None

Examples

The following shows examples of using this option:

icpx -fsycl -qmkl -qmkl-sycl-impl=blas file.cpp    // Linux
icx /fsycl /Qmkl /Qmkl-sycl-impl:blas file.cpp     // Windows

If you do not also specify option -fsycl and [q or Q]mkl, you will see a diagnostic warning. For example, the following commands will produce such a diagnostic on Linux systems:

icpx -qmkl -qmkl-sycl-impl=blas file.cpp
icpx -fsycl -qmkl-sycl-impl=blas file.cpp

See Also