INFO: No output directory specified (--dir) INFO: Using directory: "Test_Lens_20241118_025758" INFO: Regenerating c-file: Test_Lens.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Test_Lens.c Test_Lens.instr Info: 'Lens' is a contributed component. CFLAGS= ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./Test_Lens.out DEBUG: CMD: nvc -o ./Test_Lens.out ./Test_Lens.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Test_Lens.c", line 4486: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Test_Lens.c", line 8663: 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; ^ "./Test_Lens.c", line 8663: 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; ^ "./Test_Lens.c", line 8663: 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; ^ "./Test_Lens.c", line 8663: 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; ^ "./Test_Lens.c", line 8663: 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; ^ "./Test_Lens.c", line 8663: 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; ^ "./Test_Lens.c", line 9020: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_Lens.c", line 12158: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Lens.c", line 12158: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Lens.c", line 12185: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Lens.c", line 12185: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Lens.c", line 12606: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Lens.c", line 12594: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_Lens.c", line 12647: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_Lens.c", line 12708: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_Lens.c", line 12777: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_Lens.c", line 12846: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_Lens.c", line 12915: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_Lens.c", line 12984: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_Lens.c", line 13053: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Test_Lens.c", line 13122: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Test_Lens.c", line 13191: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Test_Lens.c", line 13260: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Test_Lens.c", line 13329: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./Test_Lens.c", line 13398: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./Test_Lens.c", line 13467: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./Test_Lens.c", line 13536: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./Test_Lens.c", line 13605: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./Test_Lens.c", line 13674: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./Test_Lens.c", line 13743: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./Test_Lens.c", line 13812: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./Test_Lens.c", line 13881: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./Test_Lens.c", line 13950: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./Test_Lens.c", line 14019: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./Test_Lens.c", line 14088: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./Test_Lens.c", line 14157: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 24; ^ "./Test_Lens.c", line 14226: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 25; ^ "./Test_Lens.c", line 14295: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 26; ^ "./Test_Lens.c", line 14364: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 27; ^ "./Test_Lens.c", line 14433: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 28; ^ "./Test_Lens.c", line 14502: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 29; ^ "./Test_Lens.c", line 14571: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 30; ^ "./Test_Lens.c", line 14640: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 31; ^ "./Test_Lens.c", line 14709: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 32; ^ "./Test_Lens.c", line 14778: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 33; ^ "./Test_Lens.c", line 14880: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 34; ^ "./Test_Lens.c", line 14982: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 35; ^ "./Test_Lens.c", line 15084: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 36; ^ "./Test_Lens.c", line 15186: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 37; ^ "./Test_Lens.c", line 15288: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 38; ^ "./Test_Lens.c", line 15390: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 39; ^ "./Test_Lens.c", line 15492: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 40; ^ "./Test_Lens.c", line 15594: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 41; ^ "./Test_Lens.c", line 15696: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 42; ^ "./Test_Lens.c", line 15798: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 43; ^ "./Test_Lens.c", line 15900: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 44; ^ "./Test_Lens.c", line 16002: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 45; ^ "./Test_Lens.c", line 16104: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 46; ^ "./Test_Lens.c", line 16206: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 47; ^ "./Test_Lens.c", line 17329: warning: variable "l_i" was set but never used [set_but_not_used] double l_i=0; ^ "./Test_Lens.c", line 21091: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Lens.c", line 21092: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Lens.c", line 1495: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Lens.c", line 2898: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 88, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 102, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 134, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 158, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 180, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 191, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 200, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 210, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1542, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1546, Generating acc routine seq Generating NVIDIA GPU code str_len: 1555, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4107, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4538, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4549, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4558, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4570, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4592, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4602, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4610, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4620, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4642, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4649, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4695, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4730, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4741, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4758, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4769, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4785, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4814, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4825, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4829, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5006, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5037, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5054, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5153, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5237, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5303, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5380, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5652, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5662, Generating acc routine seq Generating NVIDIA GPU code _hash: 5688, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5729, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5740, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5745, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5753, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5761, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5768, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6427, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6463, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6523, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6540, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6655, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6710, Generating acc routine seq Generating NVIDIA GPU code plane_intersect: 6733, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7717, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7785, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7864, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8332, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8348, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8366, Generating acc routine seq Generating NVIDIA GPU code off_F: 8620, Generating acc routine seq Generating NVIDIA GPU code off_sign: 8625, Generating acc routine seq Generating NVIDIA GPU code off_normal: 8635, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 8661, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 8724, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 8855, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 8900, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 9017, Generating acc routine seq Generating NVIDIA GPU code off_compare: 9135, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 9147, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 9182, Generating acc routine seq Generating NVIDIA GPU code Min_int: 9433, Generating acc routine seq Generating NVIDIA GPU code merge: 9440, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 9544, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 9559, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 9613, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 9730, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 9752, Generating acc routine seq Generating NVIDIA GPU code Lens_roughness: 9889, Generating acc routine seq Generating NVIDIA GPU code parabola_intersect: 9915, Generating acc routine seq Generating NVIDIA GPU code Lens_intersect: 9943, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 11154, Generating acc routine seq Generating NVIDIA GPU code init: 16917, Generating update device(_PSD_mon_var,_source1_var,_instrument_var,_L11_9_var,_L11_32_var,_L11_4_var,_L11_5_var,_L11_6_var,_L11_7_var,_L11_8_var,_L11_10_var,_L11_11_var,_L11_12_var,_L11_13_var,_L11_14_var,_L11_15_var,_L11_16_var,_L11_17_var,_L11_18_var,_L11_19_var,_L11_20_var,_L11_21_var,_L11_22_var,_L11_23_var,_L11_24_var,_L11_25_var,_L11_26_var,_L11_27_var,_L11_28_var,_L11_29_var,_L11_30_var,_L11_31_var,_PSD_mon_46_var,_Last_PSD_var,_PSD_mon_34_var,_PSD_mon_35_var,_PSD_mon_36_var,_PSD_mon_37_var,_PSD_mon_38_var,_PSD_mon_39_var,_PSD_mon_40_var,_PSD_mon_41_var,_PSD_mon_42_var,_PSD_mon_43_var,_PSD_mon_44_var,_PSD_mon_45_var,_L11_var,_base_var) class_Progress_bar_trace: 16960, Generating acc routine seq Generating NVIDIA GPU code class_Source_div_trace: 17050, Generating acc routine seq Generating NVIDIA GPU code class_Lens_trace: 17148, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 17537, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17831, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 18873, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 18887, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 18873, Local memory used for .inl_particle_27286,particleN,.inl_.inl_mcneutron_0_27301,.inl_.X2021_27303,.inl_.inl_.X2224_15_27302 18887, Generating implicit firstprivate(seed,_particle) finally: 20150, Generating update self(_PSD_mon_var,_instrument_var,_source1_var,_L11_9_var,_L11_32_var,_L11_4_var,_L11_5_var,_L11_6_var,_L11_7_var,_L11_8_var,_L11_10_var,_L11_11_var,_L11_12_var,_L11_13_var,_L11_14_var,_L11_15_var,_L11_16_var,_L11_17_var,_L11_18_var,_L11_19_var,_L11_20_var,_L11_21_var,_L11_22_var,_L11_23_var,_L11_24_var,_L11_25_var,_L11_26_var,_L11_27_var,_L11_28_var,_L11_29_var,_L11_30_var,_L11_31_var,_PSD_mon_46_var,_Last_PSD_var,_PSD_mon_34_var,_PSD_mon_35_var,_PSD_mon_36_var,_PSD_mon_37_var,_PSD_mon_38_var,_PSD_mon_39_var,_PSD_mon_40_var,_PSD_mon_41_var,_PSD_mon_42_var,_PSD_mon_43_var,_PSD_mon_44_var,_PSD_mon_45_var,_L11_var,_base_var) mcenabletrace: 5887, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===