Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
16 Views

How to use CAO mode (Compiler Assisted Offload) of MKL

Jump to solution

Hello everyone

I want use the CAO mode of MKL.

I writed a sample code ,

#pragma offload target(mic) \

    in(n, alpha, incx, incy) \
    in(x:length(n)) \
    in(y:length(n)) \
    out(y:length(n))
{
    cblas_caxpy(n, &alpha, x, incx, y, incy);
}

Compiler ICC printf some error message:

mkl_test.cpp(63): error: function "cblas_caxpy" called in offload region must have been declared with compatible "target" attribute
        cblas_caxpy(n, &alpha, x, incx, y, incy);

 

So , Is the MKL(2017) support 's CAO mode.

0 Kudos

Accepted Solutions
Highlighted
Employee
16 Views
0 Kudos
2 Replies
Highlighted
Employee
17 Views
0 Kudos
Highlighted
Beginner
16 Views

Nguyen .

Thanks for response.

I run the example successful.

There is another important thing to note here. The MKL library of MIC is not installed by default, you need to manually install it.

0 Kudos