Compiling the program target_ptr_map.4.c shows the error:
amdclang++
ld.lld: error: undefined symbol: omp_target_is_accessible
nvc
"target_ptr_map.4.c", line 27: error: invalid text in pragma
otherwise( target map(ptr[:n]) )
^
"target_ptr_map.4.c", line 27: error: extra text after expected end of preprocessing directive
otherwise( target map(ptr[:n]) )
^