INFO: No output directory specified (--dir) INFO: Using directory: "BTsimple_20261009_032000" INFO: Regenerating c-file: BTsimple.c DEBUG: CMD: /u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/bin/mcstas -t -o ./BTsimple.c BTsimple.instr CFLAGS= ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/bin/mcstas finished INFO: Recompiling: ./BTsimple.out DEBUG: CMD: nvc -o ./BTsimple.out ./BTsimple.c -lm -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/lib -Wl,-rpath-link,/u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/lib -L/u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/include -I/u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/include -Wl,-rpath,/u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/lib -L/u/data/pkwi/WORK/micromamba/envs/mcstas-3.x/lib -DUSE_MPI -lmpi -fast -Minfo=accel -acc=gpu -gpu=mem:managed -DOPENACC "./BTsimple.c", line 93: warning: Routine "mcgenstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcgenstate(void); ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./BTsimple.c", line 95: warning: Routine "mcsetstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcsetstate(double x, double y, double z, double vx, double vy, double vz, ^ "./BTsimple.c", line 98: warning: Routine "mcgetstate" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] _class_particle mcgetstate(_class_particle mcneutron, double *x, double *y, double *z, ^ "./BTsimple.c", line 112: warning: Routine "particle_getvar" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double particle_getvar(_class_particle *p, char *name, int *suc); ^ "./BTsimple.c", line 116: warning: Routine "str_comp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int str_comp(char *str1, char *str2); ^ "./BTsimple.c", line 146: warning: Routine "particle_getvar_void" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void* particle_getvar_void(_class_particle *p, char *name, int *suc); ^ "./BTsimple.c", line 116: warning: Routine "str_comp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int str_comp(char *str1, char *str2); ^ "./BTsimple.c", line 177: warning: Routine "particle_setvar_void" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int particle_setvar_void(_class_particle *, char *, void*); ^ "./BTsimple.c", line 201: warning: Routine "particle_setvar_void_array" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int particle_setvar_void_array(_class_particle *, char *, void*, int); ^ "./BTsimple.c", line 212: warning: Routine "particle_restore" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void particle_restore(_class_particle *p, _class_particle *p0); ^ "./BTsimple.c", line 223: warning: Routine "particle_getuservar_byid" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double particle_getuservar_byid(_class_particle *p, int id, int *suc){ ^ "./BTsimple.c", line 235: warning: Routine "particle_uservar_init" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void particle_uservar_init(_class_particle *p){ ^ "./BTsimple.c", line 304: warning: Routine "noprintf" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int noprintf(); ^ "./BTsimple.c", line 306: warning: Routine "str_len" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] size_t str_len(const char *s); ^ "./BTsimple.c", line 657: warning: Routine "mcget_ncount" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] unsigned long long int mcget_ncount(void); /* wrapper to set mcncount */ ^ "./BTsimple.c", line 884: warning: Routine "_randnorm2" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randnorm2(randstate_t* state); ^ "./BTsimple.c", line 901: warning: Routine "kiss_srandom" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] uint64_t *kiss_srandom(uint64_t state[7], uint64_t seed); ^ "./BTsimple.c", line 903: warning: Routine "kiss_random" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] uint64_t kiss_random(uint64_t state[7]); ^ "./BTsimple.c", line 911: warning: Routine "_rand01" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _rand01(randstate_t* state); ^ "./BTsimple.c", line 913: warning: Routine "_randpm1" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randpm1(randstate_t* state); ^ "./BTsimple.c", line 915: warning: Routine "_rand0max" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _rand0max(double max, randstate_t* state); ^ "./BTsimple.c", line 917: warning: Routine "_randminmax" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randminmax(double min, double max, randstate_t* state); ^ "./BTsimple.c", line 919: warning: Routine "_randtriangle" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _randtriangle(randstate_t* state); ^ "./BTsimple.c", line 922: warning: Routine "_rand01_opague" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double _rand01_opague(void* state); ^ "./BTsimple.c", line 1018: warning: Routine "coords_set" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_set(MCNUM x, MCNUM y, MCNUM z); ^ "./BTsimple.c", line 1020: warning: Routine "coords_get" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_get(Coords a, MCNUM *x, MCNUM *y, MCNUM *z); ^ "./BTsimple.c", line 1022: warning: Routine "coords_add" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_add(Coords a, Coords b); ^ "./BTsimple.c", line 1024: warning: Routine "coords_sub" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_sub(Coords a, Coords b); ^ "./BTsimple.c", line 1026: warning: Routine "coords_neg" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_neg(Coords a); ^ "./BTsimple.c", line 1028: warning: Routine "coords_scale" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_scale(Coords b, double scale); ^ "./BTsimple.c", line 1030: warning: Routine "coords_sp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double coords_sp(Coords a, Coords b); ^ "./BTsimple.c", line 1032: warning: Routine "coords_xp" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] Coords coords_xp(Coords b, Coords c); ^ "./BTsimple.c", line 1034: warning: Routine "coords_len" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double coords_len(Coords a); ^ "./BTsimple.c", line 4818: warning: variable "exists" was set but never used [set_but_not_used] int exists=0; ^ "./BTsimple.c", line 5276: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./BTsimple.c", line 7793: warning: Routine "Table_Index" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Index(t_Table Table, long i, long j); /* get indexed value */ ^ "./BTsimple.c", line 7795: warning: Routine "Table_Value" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Value(t_Table Table, double X, long j); /* search X in 1st column and return interpolated value in j-column */ ^ "./BTsimple.c", line 7802: warning: Routine "Table_Value2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Value2d(t_Table Table, double X, double Y); /* same as Table_Index with non-integer indices and 2d interpolation */ ^ "./BTsimple.c", line 7822: warning: Routine "Table_Interp1d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp1d(double x, double x1, double y1, double x2, double y2); ^ "./BTsimple.c", line 7824: warning: Routine "Table_Interp1d_nearest" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp1d_nearest(double x, double x1, double y1, double x2, double y2); ^ "./BTsimple.c", line 7826: warning: Routine "Table_Interp2d" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] double Table_Interp2d(double x, double y, double x1, double y1, double x2, double y2, ^ "./BTsimple.c", line 9808: warning: variable "numerator" was declared but never referenced [declared_but_not_referenced] double numerator; ^ "./BTsimple.c", line 9809: warning: variable "denominator" was declared but never referenced [declared_but_not_referenced] double denominator; ^ "./BTsimple.c", line 10515: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./BTsimple.c", line 10503: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./BTsimple.c", line 10560: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./BTsimple.c", line 10680: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./BTsimple.c", line 10729: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./BTsimple.c", line 10807: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./BTsimple.c", line 10893: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./BTsimple.c", line 10969: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./BTsimple.c", line 11103: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./BTsimple.c", line 11152: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./BTsimple.c", line 11230: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./BTsimple.c", line 11316: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./BTsimple.c", line 12580: warning: incompatible redefinition of macro "exit" (declared at line 636) [bad_macro_redef] #define exit(...) noprintf() ^ "./BTsimple.c", line 12592: warning: Routine "class_Progress_bar_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_Progress_bar_trace(_class_Progress_bar *_comp ^ "./BTsimple.c", line 12682: warning: Routine "class_Source_gen_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_Source_gen_trace(_class_Source_gen *_comp ^ "./BTsimple.c", line 12891: warning: Routine "class_Arm_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_Arm_trace(_class_Arm *_comp ^ "./BTsimple.c", line 12930: warning: Routine "class_L_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_L_monitor_trace(_class_L_monitor *_comp ^ "./BTsimple.c", line 13001: warning: Routine "class_Divergence_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_Divergence_monitor_trace(_class_Divergence_monitor *_comp ^ "./BTsimple.c", line 13027: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./BTsimple.c", line 13088: warning: Routine "class_PSD_monitor_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_PSD_monitor_trace(_class_PSD_monitor *_comp ^ "./BTsimple.c", line 13159: warning: Routine "class_Elliptic_guide_gravity_trace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] void class_Elliptic_guide_gravity_trace(_class_Elliptic_guide_gravity *_comp ^ "./BTsimple.c", line 13209: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.side = 0; ^ "./BTsimple.c", line 13211: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.collisionType = 0; ^ "./BTsimple.c", line 13345: warning: Routine "raytrace" will be treated as sequential because its "routine" directive doesn't specify a level of parallelism [no_routine_type] int raytrace(_class_particle* _particle) { /* single event propagation, called by mccode_main for BTsimple:TRACE */ ^ "./BTsimple.c", line 14975: warning: variable "Length" was declared but never referenced [declared_but_not_referenced] double Length; ^ "./BTsimple.c", line 14976: warning: variable "entranceHorizontalWidth" was declared but never referenced [declared_but_not_referenced] double entranceHorizontalWidth; ^ "./BTsimple.c", line 14977: warning: variable "entranceVerticalWidth" was declared but never referenced [declared_but_not_referenced] double entranceVerticalWidth; ^ "./BTsimple.c", line 14980: warning: variable "ellipseMajorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./BTsimple.c", line 14980: warning: variable "ellipseMinorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./BTsimple.c", line 14981: warning: variable "ellipseMajorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./BTsimple.c", line 14981: warning: variable "ellipseMinorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./BTsimple.c", line 14987: warning: variable "tempz" was declared but never referenced [declared_but_not_referenced] double tempz = 0; ^ "./BTsimple.c", line 15440: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./BTsimple.c", line 15441: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./BTsimple.c", line 1565: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ mcgenstate: 105, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 119, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 153, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 179, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 203, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 214, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 223, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 235, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1614, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1618, Generating acc routine seq Generating NVIDIA GPU code str_len: 1627, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4894, Generating acc routine seq Generating NVIDIA GPU code coords_set: 5328, Generating acc routine seq Generating NVIDIA GPU code coords_get: 5339, Generating acc routine seq Generating NVIDIA GPU code coords_add: 5348, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 5360, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 5372, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 5382, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 5392, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 5400, Generating acc routine seq Generating NVIDIA GPU code coords_len: 5410, Generating acc routine seq Generating NVIDIA GPU code coords_print: 5432, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 5439, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 5485, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 5520, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 5531, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 5548, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 5559, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 5575, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 5604, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 5615, Generating acc routine seq Generating NVIDIA GPU code norm_func: 5619, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5795, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5826, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5843, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5942, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 6026, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 6092, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 6169, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 6441, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 6453, Generating acc routine seq Generating NVIDIA GPU code _hash: 6485, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 6526, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 6537, Generating acc routine seq Generating NVIDIA GPU code _rand01: 6542, Generating acc routine seq Generating NVIDIA GPU code _rand01_opague: 6549, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 6560, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 6568, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 6575, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 7252, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 7292, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 7366, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 7383, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 7498, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 7553, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8601, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8669, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8748, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9239, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9255, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9273, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 9321, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9425, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9484, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_foverdf: 9797, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_newtonRapsonsMethod4thOrder: 9806, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_findNeutronEllipseIntersection: 9829, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleGuideIntersection: 9884, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_ReflectionOnEllipticSurface: 9999, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleReflection: 10056, Generating acc routine seq Generating NVIDIA GPU code init: 12550, Generating update device(_instrument_var,_source_var,_origin_var,_BT_out_var,_CalcDiv2_var,_Div_out_var,_PSD_out_var,_CalcDiv1_var,_BT_in_var,_Div_in_var,_PSD_in_var,_guide_var) class_Progress_bar_trace: 12593, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 12683, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 12892, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 12931, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 13002, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 13089, Generating acc routine seq Generating NVIDIA GPU code class_Elliptic_guide_gravity_trace: 13160, Generating acc routine seq Generating NVIDIA GPU code raytrace: 13345, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 13638, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 13652, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 13638, Local memory used for particleN 13652, Generating implicit firstprivate(mpi_node_rank,_particle,seed,ncount) finally: 14455, Generating update self(_instrument_var,_source_var,_origin_var,_BT_out_var,_CalcDiv2_var,_Div_out_var,_PSD_out_var,_CalcDiv1_var,_BT_in_var,_Div_in_var,_PSD_in_var,_guide_var) mcenabletrace: 6696, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===