Software Archive
Read-only legacy content
17061 Discussions

status clause don't work

Alexander_Komarov
381 Views

Hi there, 

I try to use status clause, but I even can't compile example from http://software.intel.com/en-us/articles/effective-use-of-the-intel-compilers-offload-features by name "NEW in Intel(R) Composer XE 2013 SP1: Example of Error Condition Checking with status ". I get message

tbo_sort.c(142): error: identifier "_Offload_status" is undefined
_Offload_status x;
^

tbo_sort.c(147): error: argument to the "status" clause must be a variable of type "_Offload_status"
#pragma offload target(mic) status(x) in(p[0:elements])
^

tbo_sort.c(155): error: identifier "OFFLOAD_SUCCESS" is undefined
if (x.result == OFFLOAD_SUCCESS) {
^

tbo_sort.c(159): error: identifier "OFFLOAD_OUT_OF_MEMORY" is undefined
if (x.result == OFFLOAD_OUT_OF_MEMORY) {

I used Intel Composer 13.3.163. Is this ability supported?

Thanks.

0 Kudos
1 Reply
Kevin_D_Intel
Employee
381 Views

The support is not present in the 13.x compiler (from the Composer XE 2013 release) that you used. It appears in the Composer XE 2013 SP1 release (w/14.x compiler) only now in Beta test and due to release later this year.

0 Kudos
Reply