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: "SOLEIL_LUCIA_20230501_053349" INFO: Regenerating c-file: SOLEIL_LUCIA.c DEBUG: CMD: mcxtrace -t -o ./SOLEIL_LUCIA.c /users/willend/xTESTS/2023-05-01/McXtrace_DUAL_A100_DMSC_5e7/SOLEIL_LUCIA/SOLEIL_LUCIA.instr CFLAGS= -I@MCCODE_LIB@/miniconda3/include -Wl,-rpath,@MCCODE_LIB@/miniconda3/lib -L@MCCODE_LIB@/miniconda3/lib -lgsl -lgslcblas -DFUNNEL -std=c99 -Wl,-rpath,GETPATH(lib) -LGETPATH(lib) -lxrl -IGETPATH(include) -DUSE_OFF -DFUNNEL ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component source is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component source -> GPU kernel from component mon_src_xy Component sample is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component sample -> GPU kernel from component mon_spl_fluo ----------------------------------------------------------- INFO: Recompiling: ./SOLEIL_LUCIA.out --> pointing datafile lib to /users/willend/McXtrace/mcxtrace/3.x-dev/lib --> pointing datafile lib to /users/willend/McXtrace/mcxtrace/3.x-dev/lib --> pointing datafile include to /users/willend/McXtrace/mcxtrace/3.x-dev/include DEBUG: CMD: nvc -o ./SOLEIL_LUCIA.out ./SOLEIL_LUCIA.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 -I/users/willend/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/../mccodelib/../../../miniconda3/include -Wl,-rpath,/users/willend/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/../mccodelib/../../../miniconda3/lib -L/users/willend/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/../mccodelib/../../../miniconda3/lib -lgsl -lgslcblas -DFUNNEL -std=c99 -Wl,-rpath,/users/willend/McXtrace/mcxtrace/3.x-dev/lib -L/users/willend/McXtrace/mcxtrace/3.x-dev/lib -lxrl -I/users/willend/McXtrace/mcxtrace/3.x-dev/include -DUSE_OFF -DFUNNEL "./SOLEIL_LUCIA.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 " "./SOLEIL_LUCIA.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++, ^ "./SOLEIL_LUCIA.c", line 3387: warning: missing return statement at end of non-void function "siminfo_init" [implicit_return_from_non_void_function] } /* siminfo_init */ ^ "./SOLEIL_LUCIA.c", line 4318: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./SOLEIL_LUCIA.c", line 4237: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./SOLEIL_LUCIA.c", line 5944: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./SOLEIL_LUCIA.c", line 6117: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "/usr/include/math.h", line 30: warning: #warning directive: A macro called log was already defined when was included. [warning_directive] # warning A macro called log was already defined when was included. ^ "/usr/include/math.h", line 31: warning: #warning directive: This will cause compilation problems. [warning_directive] # warning This will cause compilation problems. ^ "./SOLEIL_LUCIA.c", line 6624: warning: integer conversion resulted in a change of sign [integer_sign_change] Vars->OFF_polyidx = -1; ^ "./SOLEIL_LUCIA.c", line 7626: warning: variable "ratio" was set but never used [set_but_not_used] double ratio; ^ "./SOLEIL_LUCIA.c", line 8141: warning: variable "y0" is used before its value is set [used_before_set] if (y0 < ymin) y0=ymin; ^ "./SOLEIL_LUCIA.c", line 8143: warning: variable "y1" is used before its value is set [used_before_set] if (y1 < ymin) y1=ymin; ^ "./SOLEIL_LUCIA.c", line 9994: warning: variable "minx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./SOLEIL_LUCIA.c", line 9994: warning: variable "maxx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./SOLEIL_LUCIA.c", line 9994: warning: variable "miny" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./SOLEIL_LUCIA.c", line 9994: warning: variable "maxy" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./SOLEIL_LUCIA.c", line 9994: warning: variable "minz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./SOLEIL_LUCIA.c", line 9994: warning: variable "maxz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./SOLEIL_LUCIA.c", line 10350: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./SOLEIL_LUCIA.c", line 11630: warning: variable "theta0" was declared but never referenced [declared_but_not_referenced] double lambda,theta,theta0,DeltaThetas,a,d,b,C,W,kappa,g,L; ^ "./SOLEIL_LUCIA.c", line 12251: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./SOLEIL_LUCIA.c", line 13436: error: identifier "mcxtrace" is undefined gamma=(Ee*1e9)/(MELE/CELE*M_C*M_C);mcxtrace-comps/sources/Wiggler.comp/*the extra CELE is to convert to eV*/ ^ "./SOLEIL_LUCIA.c", line 13436: error: identifier "comps" is undefined gamma=(Ee*1e9)/(MELE/CELE*M_C*M_C);mcxtrace-comps/sources/Wiggler.comp/*the extra CELE is to convert to eV*/ ^ "./SOLEIL_LUCIA.c", line 13436: error: identifier "sources" is undefined gamma=(Ee*1e9)/(MELE/CELE*M_C*M_C);mcxtrace-comps/sources/Wiggler.comp/*the extra CELE is to convert to eV*/ ^ "./SOLEIL_LUCIA.c", line 13436: error: identifier "Wiggler" is undefined gamma=(Ee*1e9)/(MELE/CELE*M_C*M_C);mcxtrace-comps/sources/Wiggler.comp/*the extra CELE is to convert to eV*/ ^ "./SOLEIL_LUCIA.c", line 13815: warning: variable "status" was set but never used [set_but_not_used] int status; ^ "./SOLEIL_LUCIA.c", line 13901: warning: variable "E0" was declared but never referenced [declared_but_not_referenced] double E0, dE; ^ "./SOLEIL_LUCIA.c", line 13901: warning: variable "dE" was declared but never referenced [declared_but_not_referenced] double E0, dE; ^ "./SOLEIL_LUCIA.c", line 14175: warning: incompatible redefinition of macro "exit" (declared at line 467) [bad_macro_redef] #define exit(...) noprintf() ^ "./SOLEIL_LUCIA.c", line 14319: warning: variable "l" was declared but never referenced [declared_but_not_referenced] double k,e,l,w_u,r,w; ^ "./SOLEIL_LUCIA.c", line 14319: warning: variable "r" was declared but never referenced [declared_but_not_referenced] double k,e,l,w_u,r,w; ^ "./SOLEIL_LUCIA.c", line 14534: warning: variable "thread_offdata" was declared but never referenced [declared_but_not_referenced] off_struct thread_offdata = offdata; ^ "./SOLEIL_LUCIA.c", line 14887: warning: variable "Ex0" was declared but never referenced [declared_but_not_referenced] double kx0=kx, ky0=ky, kz0=kz, Ex0=Ex, Ey0=Ey, Ez0=Ez; ^ "./SOLEIL_LUCIA.c", line 14887: warning: variable "Ey0" was declared but never referenced [declared_but_not_referenced] double kx0=kx, ky0=ky, kz0=kz, Ex0=Ex, Ey0=Ey, Ez0=Ez; ^ "./SOLEIL_LUCIA.c", line 14887: warning: variable "Ez0" was declared but never referenced [declared_but_not_referenced] double kx0=kx, ky0=ky, kz0=kz, Ex0=Ex, Ey0=Ey, Ez0=Ez; ^ "./SOLEIL_LUCIA.c", line 14843: warning: variable "Thetaout" was declared but never referenced [declared_but_not_referenced] double Thetaout; // (rad) angle between the crystal surface and the reflected ray ^ "./SOLEIL_LUCIA.c", line 15187: warning: variable "flag" was declared but never referenced [declared_but_not_referenced] int flag=0; ^ "./SOLEIL_LUCIA.c", line 15075: warning: variable "Ef" was declared but never referenced [declared_but_not_referenced] double kf_x,kf_y,kf_z,kf,Ef; ^ "./SOLEIL_LUCIA.c", line 17025: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./SOLEIL_LUCIA.c", line 17026: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./SOLEIL_LUCIA.c", line 1347: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./SOLEIL_LUCIA.c", line 2701: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ 4 errors detected in the compilation of "./SOLEIL_LUCIA.c".