INFO: No output directory specified (--dir) INFO: Using directory: "Test_Rotator_20241121_030904" INFO: Regenerating c-file: Test_Rotator.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Test_Rotator.c Test_Rotator.instr CFLAGS= --> Added COMPONENT R0 USERVAR Rot_5 with type Rotation WARNING: --> USERVAR Rot_5 is of type Rotation and may need specific --> per-particle initialisation through an --> EXTEND block! ----------------------------------------------------------- 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_Rotator.out DEBUG: CMD: nvc -o ./Test_Rotator.out ./Test_Rotator.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Test_Rotator.c", line 4492: 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_Rotator.c", line 7080: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Rotator.c", line 7068: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_Rotator.c", line 7121: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_Rotator.c", line 7196: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Rotator.c", line 7185: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_Rotator.c", line 7238: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_Rotator.c", line 7290: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_Rotator.c", line 7355: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Rotator.c", line 7344: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_Rotator.c", line 7397: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_Rotator.c", line 7449: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Test_Rotator.c", line 7514: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Rotator.c", line 7503: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Test_Rotator.c", line 7556: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Test_Rotator.c", line 9333: warning: variable "ih" was declared but never referenced [declared_but_not_referenced] int ih; ^ "./Test_Rotator.c", line 9604: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Rotator.c", line 9605: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Rotator.c", line 1501: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Rotator.c", line 2904: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 90, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 104, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 137, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 162, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 185, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 196, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 205, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 216, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1548, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1552, Generating acc routine seq Generating NVIDIA GPU code str_len: 1561, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4113, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4544, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4555, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4564, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4576, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4588, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4598, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4608, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4616, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4626, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4648, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4655, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4701, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4736, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4747, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4764, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4775, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4791, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4820, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4831, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4835, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5012, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5043, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5060, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5159, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5243, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5309, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5386, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5658, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5668, Generating acc routine seq Generating NVIDIA GPU code _hash: 5694, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5735, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5746, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5751, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5759, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5767, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5774, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6433, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6469, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6529, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6546, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6661, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6716, Generating acc routine seq Generating NVIDIA GPU code init: 7887, Generating update device(_Incoming_var,_source_simple_var,_instrument_var,_Rot_var,_Derotated_var,_Origin_var,_Sphere0_var,_R0_var,_Sphere1_var,_DR_var,_Sphere2_var) class_Progress_bar_trace: 7930, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 8020, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_4PI_trace: 8130, Generating acc routine seq Generating NVIDIA GPU code class_Event_monitor_simple_trace: 8208, Generating acc routine seq Generating NVIDIA GPU code class_Rotator_trace: 8267, Generating acc routine seq Generating NVIDIA GPU code class_Derotator_trace: 8330, Generating acc routine seq Generating NVIDIA GPU code raytrace: 8374, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 8639, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 8653, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 8639, Local memory used for .inl_particle_10882,particleN,.inl_.inl_mcneutron_0_10897,.inl_.X1813_10899,.inl_.inl_.X2004_15_10898 8653, Generating implicit firstprivate(seed,_particle) finally: 9170, Generating update self(_Incoming_var,_instrument_var,_source_simple_var,_Rot_var,_Derotated_var,_Origin_var,_Sphere0_var,_R0_var,_Sphere1_var,_DR_var,_Sphere2_var) _getvar_parameters: 9386, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code mcenabletrace: 5893, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===