loading system configuration loading override configuration from /users/willend/mxtest/mctest/../mccodelib/mcxtrace-test/McXtrace_DUAL_A100_DMSC/mccode_config.json INFO: No output directory specified (--dir) INFO: Using directory: "Template_1Slit_Diff_20230701_055454" INFO: Regenerating c-file: Template_1Slit_Diff.c DEBUG: CMD: mcxtrace -t -o ./Template_1Slit_Diff.c /users/willend/xTESTS/2023-07-01/McXtrace_DUAL_A100_DMSC_5e7/Template_1Slit_Diff/Template_1Slit_Diff.instr CFLAGS= ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- INFO: Recompiling: ./Template_1Slit_Diff.out DEBUG: CMD: nvc -o ./Template_1Slit_Diff.out ./Template_1Slit_Diff.c -lm -DUSE_MPI -lmpi -L/opt/nvidia/hpc_sdk/Linux_x86_64/23.3/comm_libs/mpi/lib -I/opt/nvidia/hpc_sdk/Linux_x86_64/23.3/comm_libs/mpi/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Template_1Slit_Diff.c", line 1642: warning: arithmetic on pointer to void or function type [nonobject_pointer_arithmetic] if (MPI_Send((void*)(sbuf+offset*dsize), length, dtype, dest, tag++, MPI_COMM_WORLD) != MPI_SUCCESS) ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Template_1Slit_Diff.c", line 1669: warning: arithmetic on pointer to void or function type [nonobject_pointer_arithmetic] if (MPI_Recv((void*)(sbuf+offset*dsize), length, dtype, source, tag++, ^ "./Template_1Slit_Diff.c", line 3387: warning: missing return statement at end of non-void function "siminfo_init" [implicit_return_from_non_void_function] } /* siminfo_init */ ^ "./Template_1Slit_Diff.c", line 5944: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./Template_1Slit_Diff.c", line 6117: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./Template_1Slit_Diff.c", line 7933: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Template_1Slit_Diff.c", line 8178: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./Template_1Slit_Diff.c", line 8300: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Template_1Slit_Diff.c", line 8300: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "./Template_1Slit_Diff.c", line 8397: warning: incompatible redefinition of macro "exit" (declared at line 467) [bad_macro_redef] #define exit(...) noprintf() ^ "./Template_1Slit_Diff.c", line 9284: warning: the format string ends before this argument [too_many_printf_args] snprintf(fname1,255,"Coh. Intensity monitor (magnitude)",NAME_CURRENT_COMP); ^ "./Template_1Slit_Diff.c", line 9285: warning: the format string ends before this argument [too_many_printf_args] snprintf(fname1,255,"Coh. Phase monitor (argument)",NAME_CURRENT_COMP); ^ "./Template_1Slit_Diff.c", line 9760: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Template_1Slit_Diff.c", line 9761: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Template_1Slit_Diff.c", line 1347: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Template_1Slit_Diff.c", line 2701: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 66, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 80, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 110, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 135, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 158, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 169, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 178, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 188, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1387, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1391, Generating acc routine seq Generating NVIDIA GPU code str_len: 1400, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 3678, Generating acc routine seq Generating NVIDIA GPU code coords_set: 3915, Generating acc routine seq Generating NVIDIA GPU code coords_get: 3926, Generating acc routine seq Generating NVIDIA GPU code coords_add: 3935, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 3947, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 3959, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 3969, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 3979, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 3987, Generating acc routine seq Generating NVIDIA GPU code coords_len: 3997, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4019, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4026, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4072, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4107, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4118, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4135, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4146, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4162, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4191, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4202, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4206, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 4383, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 4414, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 4431, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 4530, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 4614, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 4680, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 4757, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5029, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5039, Generating acc routine seq Generating NVIDIA GPU code _hash: 5065, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5106, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5117, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5122, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5130, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5138, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5145, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 5745, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 5778, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 5839, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 5855, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 5941, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6009, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7104, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7172, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7251, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 7689, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 7705, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 7723, Generating acc routine seq Generating NVIDIA GPU code init: 8371, Generating update device(_source_var,_s1_var,_psd0_var,_instrument_var,_Origin_var) class_Progress_bar_trace: 8411, Generating acc routine seq Generating NVIDIA GPU code class_Source_pt_trace: 8501, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 8625, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_coh_trace: 8702, Generating acc routine seq Generating NVIDIA GPU code raytrace: 8821, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 8960, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 8971, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 8960, Local memory used for .inl_particle_7689,particleN,.inl_.inl_mcphoton_0_7705,.inl_.X1941_7707,.inl_.inl_.X2146_13_7706 8971, Generating implicit firstprivate(seed,_particle) finally: 9493, Generating update self(_source_var,_s1_var,_psd0_var,_instrument_var,_Origin_var) mcenabletrace: 5255, Generating update device(mcdotrace) INFO: ===