INFO: No output directory specified (--dir) INFO: Using directory: "Test_Sqw_monitor_20241121_033127" INFO: Regenerating c-file: Test_Sqw_monitor.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Test_Sqw_monitor.c Test_Sqw_monitor.instr CFLAGS= WARNING: The parameter powder_format of Environment_in is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- 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_Sqw_monitor.out DEBUG: CMD: nvc -o ./Test_Sqw_monitor.out ./Test_Sqw_monitor.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Test_Sqw_monitor.c", line 4523: 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_Sqw_monitor.c", line 10669: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Sqw_monitor.c", line 10669: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Sqw_monitor.c", line 10696: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Sqw_monitor.c", line 10696: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Sqw_monitor.c", line 11024: 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_Sqw_monitor.c", line 11024: 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_Sqw_monitor.c", line 11024: 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_Sqw_monitor.c", line 11024: 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_Sqw_monitor.c", line 11024: 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_Sqw_monitor.c", line 11024: 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_Sqw_monitor.c", line 11381: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "/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. ^ "./Test_Sqw_monitor.c", line 12872: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./Test_Sqw_monitor.c", line 12851: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./Test_Sqw_monitor.c", line 12852: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./Test_Sqw_monitor.c", line 12763: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./Test_Sqw_monitor.c", line 12763: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./Test_Sqw_monitor.c", line 14342: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sqw_monitor.c", line 14330: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_Sqw_monitor.c", line 14383: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_Sqw_monitor.c", line 14473: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_Sqw_monitor.c", line 14522: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_Sqw_monitor.c", line 14624: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_Sqw_monitor.c", line 14718: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_Sqw_monitor.c", line 14812: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_Sqw_monitor.c", line 14909: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Test_Sqw_monitor.c", line 15003: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Test_Sqw_monitor.c", line 15097: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Test_Sqw_monitor.c", line 15146: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Test_Sqw_monitor.c", line 15222: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./Test_Sqw_monitor.c", line 15298: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./Test_Sqw_monitor.c", line 15374: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./Test_Sqw_monitor.c", line 15450: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./Test_Sqw_monitor.c", line 15526: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./Test_Sqw_monitor.c", line 15628: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./Test_Sqw_monitor.c", line 15730: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./Test_Sqw_monitor.c", line 15832: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./Test_Sqw_monitor.c", line 15934: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./Test_Sqw_monitor.c", line 17900: warning: variable "ti" was set but never used [set_but_not_used] double ki_x,ki_y,ki_z,ti,vi,ki; ^ "./Test_Sqw_monitor.c", line 17901: warning: variable "tf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./Test_Sqw_monitor.c", line 17901: warning: variable "kf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./Test_Sqw_monitor.c", line 18509: warning: variable "q" was declared but never referenced [declared_but_not_referenced] double q,qq; ^ "./Test_Sqw_monitor.c", line 18513: warning: variable "phi" was declared but never referenced [declared_but_not_referenced] double phi; ^ "./Test_Sqw_monitor.c", line 20953: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Sqw_monitor.c", line 20954: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Sqw_monitor.c", line 1532: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Sqw_monitor.c", line 2935: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 95, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 109, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 147, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 177, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 205, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 216, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 225, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 241, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1579, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1583, Generating acc routine seq Generating NVIDIA GPU code str_len: 1592, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4144, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4575, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4586, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4595, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4607, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4619, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4629, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4639, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4647, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4657, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4679, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4686, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4732, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4767, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4778, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4795, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4806, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4822, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4851, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4862, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4866, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5043, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5074, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5091, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5190, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5274, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5340, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5417, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5689, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5699, Generating acc routine seq Generating NVIDIA GPU code _hash: 5725, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5766, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5777, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5782, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5790, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5798, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5805, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6464, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6500, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6560, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6577, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6692, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6747, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7777, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7845, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7924, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8392, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8408, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8426, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8473, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9665, Generating acc routine seq Generating NVIDIA GPU code off_F: 10981, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10986, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10996, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11022, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11085, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11216, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11261, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11378, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11496, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11508, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11543, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11794, Generating acc routine seq Generating NVIDIA GPU code merge: 11801, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11905, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11920, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11974, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12091, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12113, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_SW: 12653, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_Q_proba_per_w: 12690, Generating acc routine seq Generating NVIDIA GPU code Sqw_integrate_iqSq: 12726, Generating acc routine seq Generating NVIDIA GPU code init: 17007, Generating update device(det_radius,env_radius,vi,dt0) 17110, Generating update device(_Sample_in_var,_a1_var,_SampleOut_var,_M_total_var,_Detector_nM_var,_SamplePos_var,_Container_in_var,_Environment_in_var,_SampleIn_var,_Detector_nM_multi_var,_Container_out_var,_Detector_nM_env_var,_Detector_nM_inc_var,_Detector_nM_coh_var,_M_single_inc_var,_M_multi_var,_M_single_coh_var,_M_env_container_var,_Environment_out_var,_instrument_var,_csource_var) class_Progress_bar_trace: 17153, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 17260, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 17469, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 17515, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 17829, Generating acc routine seq Generating NVIDIA GPU code 18148, Reference argument passing prevents parallelization: u1z Reference argument passing prevents parallelization: u1y Reference argument passing prevents parallelization: u1x Reference argument passing prevents parallelization: solid_angle class_Sqw_monitor_trace: 18484, Generating acc routine seq Generating NVIDIA GPU code raytrace: 18628, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 19102, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 19116, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 19102, Local memory used for .inl_particle_23621,particleN,.inl_.inl_mcneutron_0_23636,.inl_.X2208_23638,.inl_.inl_.X2410_15_23637 19116, Generating implicit firstprivate(seed,_particle) finally: 20174, Generating update self(_Sample_in_var,_a1_var,_SampleOut_var,_M_total_var,_Detector_nM_var,_SamplePos_var,_Container_in_var,_Environment_in_var,_SampleIn_var,_Detector_nM_multi_var,_Container_out_var,_Detector_nM_env_var,_Detector_nM_inc_var,_Detector_nM_coh_var,_M_single_inc_var,_M_multi_var,_M_single_coh_var,_M_env_container_var,_Environment_out_var,_instrument_var,_csource_var) mcenabletrace: 5924, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===