INFO: No output directory specified (--dir) INFO: Using directory: "Template_SasView_20241123_064637" INFO: Regenerating c-file: Template_SasView.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -t -o ./Template_SasView.c Template_SasView.instr CFLAGS= ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component sample ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace finished INFO: Recompiling: ./Template_SasView.out DEBUG: CMD: nvc -o ./Template_SasView.out ./Template_SasView.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/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -L/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Template_SasView.c", line 4476: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Template_SasView.c", line 6599: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./Template_SasView.c", line 6772: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "/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. ^ "parallelepiped", line 590: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "parallelepiped", line 578: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "parallelepiped", line 634: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "parallelepiped", line 631: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "parallelepiped", line 676: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "parallelepiped", line 747: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "parallelepiped", line 809: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "parallelepiped", line 871: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "parallelepiped", line 920: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "parallelepiped", line 994: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "parallelepiped", line 1066: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "parallelepiped", line 1140: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "parallelepiped", line 1203: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "parallelepiped", line 1264: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "parallelepiped", line 1419: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "parallelepiped", line 1798: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "parallelepiped", line 1798: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i,j; ^ "parallelepiped", line 1799: warning: variable "p1" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "parallelepiped", line 1799: warning: variable "p2" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "parallelepiped", line 1799: warning: variable "p3" was declared but never referenced [declared_but_not_referenced] double *p1,*p2,*p3; ^ "parallelepiped", line 1857: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "parallelepiped", line 2364: warning: variable "d_Phi" was declared but never referenced [declared_but_not_referenced] double l0, l1, k, l_full, l, dl, d_Phi; ^ "parallelepiped", line 2365: warning: variable "axis_x" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "parallelepiped", line 2365: warning: variable "axis_y" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "parallelepiped", line 2365: warning: variable "axis_z" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "parallelepiped", line 2366: warning: variable "f" was declared but never referenced [declared_but_not_referenced] double f, solid_angle, kx_i, ky_i, kz_i, q, qx, qy, qz; ^ "parallelepiped", line 2524: warning: variable "d_Phi" was declared but never referenced [declared_but_not_referenced] double l0, l1, k, l_full, l, dl, d_Phi; ^ "parallelepiped", line 2525: warning: variable "axis_x" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "parallelepiped", line 2525: warning: variable "axis_y" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "parallelepiped", line 2525: warning: variable "axis_z" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "parallelepiped", line 2526: warning: variable "f" was declared but never referenced [declared_but_not_referenced] double f, solid_angle, kx_i, ky_i, kz_i, q, qx, qy, qz; ^ "parallelepiped", line 2678: warning: variable "d_Phi" was declared but never referenced [declared_but_not_referenced] double l0, l1, k, l_full, l, dl, d_Phi; ^ "parallelepiped", line 2679: warning: variable "axis_x" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "parallelepiped", line 2679: warning: variable "axis_y" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "parallelepiped", line 2679: warning: variable "axis_z" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "parallelepiped", line 2680: warning: variable "f" was declared but never referenced [declared_but_not_referenced] double f, solid_angle, kx_i, ky_i, kz_i, q, qx, qy, qz; ^ "parallelepiped", line 2831: warning: variable "k" was declared but never referenced [declared_but_not_referenced] int i,j,k; ^ "parallelepiped", line 2832: warning: variable "e" was declared but never referenced [declared_but_not_referenced] double e,p2; ^ "parallelepiped", line 4759: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "parallelepiped", line 4760: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Template_SasView.c", line 1485: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Template_SasView.c", line 2888: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ "./Template_SasView.c", line 8773: warning: function "qac_rotation" was declared but never referenced [declared_but_not_referenced] qac_rotation( ^ "./Template_SasView.c", line 8806: warning: function "qac_apply" was declared but never referenced [declared_but_not_referenced] qac_apply( ^ "./Template_SasView.c", line 8823: warning: function "qabc_rotation" was declared but never referenced [declared_but_not_referenced] qabc_rotation( ^ "./Template_SasView.c", line 8869: warning: function "qabc_apply" was declared but never referenced [declared_but_not_referenced] qabc_apply( ^ mcgenstate: 84, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 98, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 131, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 156, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 179, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 190, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 199, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 209, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1532, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1536, Generating acc routine seq Generating NVIDIA GPU code str_len: 1545, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4097, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4528, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4539, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4548, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4560, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4572, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4592, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4600, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4610, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4632, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4639, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4685, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4720, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4731, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4748, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4759, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4775, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4804, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4815, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4819, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 4996, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5027, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5044, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5143, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5227, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5293, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5370, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5642, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5652, Generating acc routine seq Generating NVIDIA GPU code _hash: 5678, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5719, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5730, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5735, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5743, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5751, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5758, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6400, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6433, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6494, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6510, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6596, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6664, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7832, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7900, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7979, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8447, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8463, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8481, Generating acc routine seq Generating NVIDIA GPU code square: 8686, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code cube: 8687, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sas_sinx_x: 8688, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sas_3j1x_x: 8892, include "sas_3j1x_x" 47, Generating acc routine seq Generating NVIDIA GPU code sphere_volume: 8892, include "sphere_form" 7, Generating acc routine seq Generating NVIDIA GPU code sphere_form: 8892, include "sphere_form" 13, Generating acc routine seq Generating NVIDIA GPU code init: 8892, include "parallelepiped" 1996, Generating update device(_PSDrad_var,_a1_var,_source_var,_sample_var,_arm_var,_coll1_var,_sample47_var,_instrument_var,_sample1_var,_sample3_var,_coll2_var,_Ldetector_var,_detector_var) class_Progress_bar_trace: 8892, include "parallelepiped" 2037, Generating acc routine seq Generating NVIDIA GPU code class_Source_flat_trace: 8892, include "parallelepiped" 2128, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 8892, include "parallelepiped" 2265, Generating acc routine seq Generating NVIDIA GPU code class_SasView_barbell_trace: 8892, include "parallelepiped" 2335, Generating acc routine seq Generating NVIDIA GPU code class_SasView_bcc_paracrystal_trace: 8892, include "parallelepiped" 2497, Generating acc routine seq Generating NVIDIA GPU code class_SasView_parallelepiped_trace: 8892, include "parallelepiped" 2649, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 8892, include "parallelepiped" 2811, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 8892, include "parallelepiped" 2902, Generating acc routine seq Generating NVIDIA GPU code raytrace: 8892, include "parallelepiped" 2980, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 8892, include "parallelepiped" 3275, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 3289, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 3275, Local memory used for .inl_particle_15148,particleN,.inl_.inl_mcphoton_0_15164,.inl_.X1999_15166,.inl_.inl_.X2196_13_15165 3289, Generating implicit firstprivate(seed,_particle) finally: 8892, include "parallelepiped" 3931, Generating update self(_PSDrad_var,_a1_var,_source_var,_sample_var,_arm_var,_coll1_var,_sample47_var,_instrument_var,_sample1_var,_sample3_var,_coll2_var,_Ldetector_var,_detector_var) metadata_table_print_all_keys: 8892, include "parallelepiped" metadata_table_print_all_components: 8892, include "parallelepiped" mcenabletrace: 5877, Generating update device(mcdotrace) Fq_barbell: 8892, include "barbell" 109, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatxO_yff9nIJ353.o: missing .note.GNU-stack section implies executable stack /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker DEBUG: CMD: nvc finished INFO: ===