Software Archive
Read-only legacy content
17061 Discussions

compiling a simple program

TK
Beginner
474 Views

i have a simple program which includes:

#pragma offload target(mic)

i try to compile it using the following:

icc -offload-build test.c -o test

i get:

icc: command line remark #10148: option 'offload-build' not supported

how should i compile my program? thanks!

0 Kudos
2 Replies
Ravi_N_Intel
Employee
474 Views

-offload-build is obsoleted.  Just use

icc -o test test.c.

If your program has offload code the compiler will generate the necessary code to run on the card.

0 Kudos
TK
Beginner
474 Views

Thanks Ravi!

0 Kudos
Reply