INFO: No output directory specified (--dir) INFO: Using directory: "RTP_NeutronRadiography_20241206_130417" INFO: Regenerating c-file: RTP_NeutronRadiography.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./RTP_NeutronRadiography.c RTP_NeutronRadiography.instr 2024-12-06 13:04:21.383 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Guide(0):read_table-lib :Guide(1):ref-lib :ref-lib(0):read_table-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib :PowderN(0):read_table-lib :PowderN(1):interoff-lib :Shape(0):read_table-lib :Shape(1):interoff-lib 2024-12-06 13:04:21.384 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-06 13:04:21.384 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib ref-lib 2024-12-06 13:04:21.384 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib 2024-12-06 13:04:21.384 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib interoff-lib monitor_nd-lib 2024-12-06 13:04:21.385 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component source -> GPU kernel from component CoarseCollimator1 -> GPU kernel from component CoarseCollimator2 -> GPU kernel from component lmon -> GPU kernel from component sample_position -> GPU kernel from component sample_position_rotated -> GPU kernel from component sample_outer1 -> GPU kernel from component sample_inner -> GPU kernel from component sample_outer2 -> GPU kernel from component image_plate_ideal -> GPU kernel from component image_plate_eff -> GPU kernel from component image_plate_scattered -> GPU kernel from component reactor ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./RTP_NeutronRadiography.out DEBUG: CMD: nvc -o ./RTP_NeutronRadiography.out ./RTP_NeutronRadiography.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./RTP_NeutronRadiography.c", line 4491: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./RTP_NeutronRadiography.c", line 11855: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./RTP_NeutronRadiography.c", line 11855: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./RTP_NeutronRadiography.c", line 11882: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./RTP_NeutronRadiography.c", line 11882: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./RTP_NeutronRadiography.c", line 12006: 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; ^ "./RTP_NeutronRadiography.c", line 12006: 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; ^ "./RTP_NeutronRadiography.c", line 12006: 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; ^ "./RTP_NeutronRadiography.c", line 12006: 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; ^ "./RTP_NeutronRadiography.c", line 12006: 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; ^ "./RTP_NeutronRadiography.c", line 12006: 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; ^ "./RTP_NeutronRadiography.c", line 12363: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./RTP_NeutronRadiography.c", line 13273: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./RTP_NeutronRadiography.c", line 15965: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./RTP_NeutronRadiography.c", line 15966: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./RTP_NeutronRadiography.c", line 15969: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./RTP_NeutronRadiography.c", line 15972: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./RTP_NeutronRadiography.c", line 15976: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./RTP_NeutronRadiography.c", line 15978: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./RTP_NeutronRadiography.c", line 15979: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./RTP_NeutronRadiography.c", line 15980: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./RTP_NeutronRadiography.c", line 15982: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./RTP_NeutronRadiography.c", line 18428: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./RTP_NeutronRadiography.c", line 18429: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./RTP_NeutronRadiography.c", line 1500: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./RTP_NeutronRadiography.c", line 2903: 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: 197, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 206, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 217, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1547, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1551, Generating acc routine seq Generating NVIDIA GPU code str_len: 1560, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4112, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4543, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4554, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4563, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4575, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4587, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4597, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4607, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4615, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4647, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4654, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4700, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4735, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4746, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4763, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4774, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4790, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4819, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4830, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4834, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5011, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5042, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5059, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5158, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5242, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5308, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5385, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5657, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5667, Generating acc routine seq Generating NVIDIA GPU code _hash: 5693, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5734, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5745, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5750, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5758, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5766, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5773, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6430, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6526, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6543, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6658, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6713, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7441, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 7825, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8964, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9032, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9111, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9579, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9595, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9613, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9679, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9738, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10851, Generating acc routine seq Generating NVIDIA GPU code off_F: 11963, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11968, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11978, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 12004, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 12067, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 12198, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 12243, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12360, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12478, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12490, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12525, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12776, Generating acc routine seq Generating NVIDIA GPU code merge: 12783, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12887, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12902, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12956, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 13073, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 13095, Generating acc routine seq Generating NVIDIA GPU code init: 15078, Generating update device(_CoarseCollimator2_var,_source_var,_sample_position_var,_CoarseCollimator1_var,_instrument_var,_sample_position_rotated_var,_sample_outer2_var,_sample_inner_var,_reactor_var,_sample_outer1_var,_image_plate_eff_var,_Origin_var,_image_plate_ideal_var,_lmon_var,_image_plate_scattered_var) class_Progress_bar_trace: 15119, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 15209, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 15418, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 15571, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 15887, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 15917, Generating acc routine seq Generating NVIDIA GPU code class_Shape_trace: 16404, Generating acc routine seq Generating NVIDIA GPU code raytrace: 16456, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 16790, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 16804, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 16790, Local memory used for .inl_particle_17443,particleN,.inl_.inl_mcneutron_0_17458,.inl_.X2176_17460,.inl_.inl_.X2383_15_17459 16804, Generating implicit firstprivate(seed,_particle) finally: 17589, Generating update self(_CoarseCollimator2_var,_sample_position_var,_source_var,_CoarseCollimator1_var,_instrument_var,_sample_position_rotated_var,_sample_outer2_var,_sample_inner_var,_reactor_var,_sample_outer1_var,_image_plate_eff_var,_Origin_var,_image_plate_ideal_var,_lmon_var,_image_plate_scattered_var) mcenabletrace: 5892, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvc89Bxm0KefbpBD.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-06/ANTLR_openacc_1e7_Linux_1e7/RTP_NeutronRadiography/./RTP_NeutronRadiography.c:7550: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===