Community
cancel
Showing results for 
Search instead for 
Did you mean: 
yu__frank
Beginner
90 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
1 Solution
Loc_N_Intel
Employee
90 Views
2 Replies
Loc_N_Intel
Employee
91 Views
yu__frank
Beginner
90 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.

Reply