Building the program with nvc and amdclang is successful, but the runtime error on AMD and NVIDIA GPUs is segfault.
nvc -mp=gpu -gpu=cc90 target_struct_map.4.c
amdclang++ -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx942 target_struct_map.4.c