Open
Description
As @QJohn2017 mentioned in #89 there are several warnings when icpc
is used instead of open mpi
. This should be resolved for future use.
The warnings for
mpic++ -Wall -O3 -lfftw3 -lm -D__PARALLEL_SETTING__=1 -c -fopenmp -lz main.cpp
were:
- math libray
icpc: warning #10314: specifying -lm before object files may supercede the Intel(R) math library and affect performance
- openMP flag
icpc: command line warning #10006: ignoring unknown option '-fopenmp'
#pragma once
parallel_jobs.h(22): remark #1782: #pragma once is obsolete. Use #ifndef guard instead.
#pragma once
^
parallel_jobs.h(54): remark #1418: external function definition with no prior declaration
int start_array(int* numtasks,
^
parallel_jobs.h(107): remark #1418: external function definition with no prior declaration
int end_array(void)
^
parallel_jobs.h(130): remark #1418: external function definition with no prior declaration
int check_break(void)
^
all_directions.hpp(21): remark #1782: #pragma once is obsolete. Use #ifndef guard instead.
#pragma once
^
main.cpp(71): remark #181: argument is incompatible with corresponding format string conversion
printf("this is job %5d of %5d jobs in the array (on %s = rank: %d)\n", i, N_max, pHost, rank);
^
main.cpp(71): remark #181: argument is incompatible with corresponding format string conversion
printf("this is job %5d of %5d jobs in the array (on %s = rank: %d)\n", i, N_max, pHost, rank);
^
and (as in all versions) in during:
g++ -Wall -O3 -lfftw3 -lm -c -fopenmp -I./include/ single_direction.cpp
the warning:
In file included from single_direction.cpp:35:
run_through_data.hpp: In function ‘void run_through_data(const one_line*, unsigned int, DET) [with DET = Detector_fft*]’:
run_through_data.hpp:56: warning: ‘time_fill.Discrete<double>::future’ may be used uninitialized in this function
run_through_data.hpp:56: warning: ‘time_fill.Discrete<double>::now’ may be used uninitialized in this function
run_through_data.hpp:56: warning: ‘time_fill.Discrete<double>::old’ may be used uninitialized in this function