INFO: No output directory specified (--dir) INFO: Using directory: "Union_NCrystal_mix_example_20241222_085453" INFO: Regenerating c-file: Union_NCrystal_mix_example.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./Union_NCrystal_mix_example.c Union_NCrystal_mix_example.instr 2024-12-22 08:55:26.387 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib 2024-12-22 08:55:26.387 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to monitor_nd-lib read_table-lib interoff-lib No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component init -> GPU kernel from component NCrystal_mono -> GPU kernel from component NCrystal_mono_material -> GPU kernel from component origin -> GPU kernel from component source -> GPU kernel from component mono_arm -> GPU kernel from component monochromator Component master is NOACC, CPUONLY=False ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component master -> GPU kernel from component mono_out Component powder_sample is NOACC, CPUONLY=False ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component powder_sample -> GPU kernel from component powder_pattern_detc -> GPU kernel from component stop ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./Union_NCrystal_mix_example.out --> launching cmd: ncrystal-config --show libdir --> launching cmd: ncrystal-config --show libpath --> launching cmd: ncrystal-config --show includedir DEBUG: CMD: nvc -o ./Union_NCrystal_mix_example.out ./Union_NCrystal_mix_example.c -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/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/libNCrystal.so.3.8.2 -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include "./Union_NCrystal_mix_example.c", line 4490: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Union_NCrystal_mix_example.c", line 8735: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Union_NCrystal_mix_example.c", line 9259: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./Union_NCrystal_mix_example.c", line 9282: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./Union_NCrystal_mix_example.c", line 9770: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./Union_NCrystal_mix_example.c", line 9771: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./Union_NCrystal_mix_example.c", line 9772: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./Union_NCrystal_mix_example.c", line 9932: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Union_NCrystal_mix_example.c", line 10152: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Union_NCrystal_mix_example.c", line 10311: warning: variable "radius_top" was declared but never referenced [declared_but_not_referenced] double radius_top = geometry->geometry_parameters.p_cone_storage->cone_radius_top; ^ "./Union_NCrystal_mix_example.c", line 10312: warning: variable "radius_bottom" was declared but never referenced [declared_but_not_referenced] double radius_bottom = geometry->geometry_parameters.p_cone_storage->cone_radius_bottom; ^ "./Union_NCrystal_mix_example.c", line 10587: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./Union_NCrystal_mix_example.c", line 10346: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Union_NCrystal_mix_example.c", line 10348: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Union_NCrystal_mix_example.c", line 10349: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Union_NCrystal_mix_example.c", line 10350: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Union_NCrystal_mix_example.c", line 10374: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./Union_NCrystal_mix_example.c", line 10383: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Union_NCrystal_mix_example.c", line 10383: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Union_NCrystal_mix_example.c", line 10385: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Union_NCrystal_mix_example.c", line 10434: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./Union_NCrystal_mix_example.c", line 10601: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Union_NCrystal_mix_example.c", line 10602: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Union_NCrystal_mix_example.c", line 10603: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Union_NCrystal_mix_example.c", line 10632: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Union_NCrystal_mix_example.c", line 10690: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Union_NCrystal_mix_example.c", line 10706: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Union_NCrystal_mix_example.c", line 10706: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Union_NCrystal_mix_example.c", line 10707: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./Union_NCrystal_mix_example.c", line 10708: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Union_NCrystal_mix_example.c", line 11145: warning: variable "vector2" is used before its value is set [used_before_set] if (verbal == 1) printf("vector1 = (%f,%f,%f)\n",vector1.x,vector1.y,vector2.z); ^ "./Union_NCrystal_mix_example.c", line 11134: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Union_NCrystal_mix_example.c", line 11211: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Union_NCrystal_mix_example.c", line 11418: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Union_NCrystal_mix_example.c", line 11516: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./Union_NCrystal_mix_example.c", line 11702: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Union_NCrystal_mix_example.c", line 11895: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Union_NCrystal_mix_example.c", line 11896: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Union_NCrystal_mix_example.c", line 12430: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Union_NCrystal_mix_example.c", line 12431: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Union_NCrystal_mix_example.c", line 12830: warning: variable "square_center" is used before its value is set [used_before_set] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ "./Union_NCrystal_mix_example.c", line 12690: warning: variable "is_rectangle" was declared but never referenced [declared_but_not_referenced] int is_rectangle = geometry_box->geometry_parameters.p_box_storage->is_rectangle; ^ "./Union_NCrystal_mix_example.c", line 12695: warning: variable "y_height2" was declared but never referenced [declared_but_not_referenced] double y_height2 = geometry_box->geometry_parameters.p_box_storage->y_height2; ^ "./Union_NCrystal_mix_example.c", line 12696: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry_box->geometry_parameters.p_box_storage->x_vector; ^ "./Union_NCrystal_mix_example.c", line 12697: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry_box->geometry_parameters.p_box_storage->y_vector; ^ "./Union_NCrystal_mix_example.c", line 12704: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Union_NCrystal_mix_example.c", line 12705: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Union_NCrystal_mix_example.c", line 12828: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./Union_NCrystal_mix_example.c", line 13094: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./Union_NCrystal_mix_example.c", line 13160: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Union_NCrystal_mix_example.c", line 13346: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Union_NCrystal_mix_example.c", line 13349: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Union_NCrystal_mix_example.c", line 13506: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Union_NCrystal_mix_example.c", line 13509: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Union_NCrystal_mix_example.c", line 14428: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./Union_NCrystal_mix_example.c", line 14337: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./Union_NCrystal_mix_example.c", line 14640: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,parent,mask_index,masked_volume_index,ANY_logic,true_parent_volume_number; ^ "./Union_NCrystal_mix_example.c", line 14830: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./Union_NCrystal_mix_example.c", line 14979: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Union_NCrystal_mix_example.c", line 15383: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Union_NCrystal_mix_example.c", line 16248: warning: missing return statement at end of non-void function "ncrystalsample_surfintersect" [implicit_return_from_non_void_function] } ^ "./Union_NCrystal_mix_example.c", line 18947: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Union_NCrystal_mix_example.c", line 18947: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Union_NCrystal_mix_example.c", line 18974: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Union_NCrystal_mix_example.c", line 18974: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Union_NCrystal_mix_example.c", line 20516: 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; ^ "./Union_NCrystal_mix_example.c", line 20516: 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; ^ "./Union_NCrystal_mix_example.c", line 20516: 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; ^ "./Union_NCrystal_mix_example.c", line 20516: 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; ^ "./Union_NCrystal_mix_example.c", line 20516: 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; ^ "./Union_NCrystal_mix_example.c", line 20516: 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; ^ "./Union_NCrystal_mix_example.c", line 20873: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Union_NCrystal_mix_example.c", line 21779: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Union_NCrystal_mix_example.c", line 21814: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Union_NCrystal_mix_example.c", line 21850: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Union_NCrystal_mix_example.c", line 21886: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Union_NCrystal_mix_example.c", line 22279: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Union_NCrystal_mix_example.c", line 25218: warning: variable "physics_output" was set but never used [set_but_not_used] int physics_output; ^ "./Union_NCrystal_mix_example.c", line 24845: warning: variable "start_weight" was set but never used [set_but_not_used] double start_weight; ^ "./Union_NCrystal_mix_example.c", line 28748: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Union_NCrystal_mix_example.c", line 28749: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Union_NCrystal_mix_example.c", line 1498: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Union_NCrystal_mix_example.c", line 2901: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 89, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 103, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 136, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 161, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 184, 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: 1545, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1549, Generating acc routine seq Generating NVIDIA GPU code str_len: 1558, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4111, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4542, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4553, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4562, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4574, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4586, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4596, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4606, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4614, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4624, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4646, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4653, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4699, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4734, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4745, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4762, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4773, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4789, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4818, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4829, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4833, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5010, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5041, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5058, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5157, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5241, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5307, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5384, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5656, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5666, Generating acc routine seq Generating NVIDIA GPU code _hash: 5692, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5733, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5744, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5749, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5757, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5765, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5772, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6429, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6525, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6542, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6657, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6712, Generating acc routine seq Generating NVIDIA GPU code distance_between: 7990, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code length_of_3vector: 7998, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code coords_scalar_mult: 8013, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code on_int_list: 8028, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code print_1d_int_list: 8249, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code update_current_mask_intersect_status: 8579, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code make_tagging_tree_node: 8659, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code initialize_tagging_tree_node: 8682, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code goto_process_node: 8708, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code goto_volume_node: 8728, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code add_statistics_to_node: 8777, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code clear_intersection_table: 9075, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_box_intersect_advanced: 9758, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_box_intersect_simple: 9952, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_box_simple: 9993, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_cone: 10012, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_cone_intersect: 10076, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_box_advanced: 10860, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_sphere_intersect: 10987, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_sphere: 11009, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sample_cylinder_intersect: 11054, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_cylinder: 11115, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code intersect_function: 13236, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code r_within_function: 13268, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code within_which_volume_GPU: 13466, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code NCrystal_physics_my: 15848, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code NCrystal_physics_scattering: 15876, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code ncrystalsample_surfintersect: 16239, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code physics_my: 16273, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code physics_scattering: 16332, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 17928, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 19773, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 19841, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 19920, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 20388, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 20404, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 20422, Generating acc routine seq Generating NVIDIA GPU code off_F: 20473, Generating acc routine seq Generating NVIDIA GPU code off_sign: 20478, Generating acc routine seq Generating NVIDIA GPU code off_normal: 20488, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 20514, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 20577, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 20708, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 20753, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 20870, Generating acc routine seq Generating NVIDIA GPU code off_compare: 20988, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 21000, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 21035, Generating acc routine seq Generating NVIDIA GPU code Min_int: 21286, Generating acc routine seq Generating NVIDIA GPU code merge: 21293, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 21397, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 21412, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 21466, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 21583, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 21605, Generating acc routine seq Generating NVIDIA GPU code init: 24403, Generating update device(_NCrystal_mono_var,_NCrystal_mono_material_var,_monochromator_var,_powder_sample_var,_master_var,_mono_out_var,_instrument_var,_mono_arm_var,_powder_pattern_detc_var,_origin_var,_stop_var,_source_var,_init_var) class_NCrystal_process_trace: 24445, Generating acc routine seq Generating NVIDIA GPU code class_Progress_bar_trace: 24490, Generating acc routine seq Generating NVIDIA GPU code class_Source_div_trace: 24580, Generating acc routine seq Generating NVIDIA GPU code NVC++-W-1056-External variables used in acc routine need to be in #pragma acc create() - abs_loggers_with_data_array (./Union_NCrystal_mix_example.c: 25892) NVC++-W-1056-External variables used in acc routine need to be in #pragma acc create() - loggers_with_data_array (./Union_NCrystal_mix_example.c: 25840) NVC++-W-1056-External variables used in acc routine need to be in #pragma acc create() - loggers_with_data_array (./Union_NCrystal_mix_example.c: 24877) class_Union_master_trace: 25847, Accelerator restriction: Indirect function/procedure calls are not supported 25899, Accelerator restriction: Indirect function/procedure calls are not supported 25945, Accelerator restriction: Indirect function/procedure calls are not supported class_NCrystal_sample_trace: 26154, Generating acc routine seq Generating NVIDIA GPU code 26258, Reference argument passing prevents parallelization: xsect_abs 26260, Reference argument passing prevents parallelization: xsect_scat class_Monitor_nD_trace: 26306, Generating acc routine seq Generating NVIDIA GPU code raytrace: 26603, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 26814, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 26828, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 26814, Local memory used for .inl_particle_30165,particleN,.inl_.inl_mcneutron_0_30180,.inl_.X2781_30182,.inl_.inl_.X2986_15_30181 26828, Generating implicit firstprivate(seed,_particle) finally: 27935, Generating update self(_NCrystal_mono_var,_NCrystal_mono_material_var,_monochromator_var,_powder_sample_var,_master_var,_mono_out_var,_instrument_var,_mono_arm_var,_powder_pattern_detc_var,_origin_var,_stop_var,_source_var,_init_var) mcenabletrace: 5891, Generating update device(mcdotrace) nvvmCompileProgram error 9: NVVM_ERROR_COMPILATION. Error: /tmp/nvaccIC7_gMIlSYNcU.gpu (107291, 37): parse use of undefined value '@class_Union_master_trace' NVC++-F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (./Union_NCrystal_mix_example.c: 26814) NVC++/x86-64 Linux 24.7-0: compilation aborted INFO: call to nvc failed with Command 'nvc -o ./Union_NCrystal_mix_example.out ./Union_NCrystal_mix_example.c -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/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/libNCrystal.so.3.8.2 -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include' returned non-zero exit status 2. Traceback (most recent call last): File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 595, in main() File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 503, in main mcstas.prepare(options) File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 294, in prepare Process(lexer.quote(options.cc)).run(args) File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 77, in run raise err File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 73, in run proc = run(command, shell=True, check=True, text=True, capture_output=pipe) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'nvc -o ./Union_NCrystal_mix_example.out ./Union_NCrystal_mix_example.c -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/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/libNCrystal.so.3.8.2 -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include' returned non-zero exit status 2.