Intel® C++ Compiler 16.0 User and Reference Guide
This topic only applies to Intel® Many Integrated Core Architecture (Intel® MIC Architecture).
setjmp saves function state and longjmp resumes execution from a saved state. Saved state cannot be transported between the CPU and the target.
If you use setjmp in the offloaded code, the corresponding longjmp must also happen on the target within the same offload.
Thread-private variables are supported only with the pragma-based programming model, using copyin and copyout. They are not supported with the shared virtual memory model.
When a statement is offloaded, thread-private variable values from the CPU thread that does the offload are copied to the target, and then copied back when default in and out are in effect. Copies of thread-private variables in other CPU threads are not modified.