output reformatting and refactoring
This commit is contained in:
@ -469,27 +469,28 @@ void FixIntel::pair_init_check(const bool cdmessage)
|
||||
#endif
|
||||
|
||||
if (_print_pkg_info && comm->me == 0) {
|
||||
if (screen) {
|
||||
fprintf(screen,
|
||||
"----------------------------------------------------------\n");
|
||||
if (_offload_balance != 0.0) {
|
||||
fprintf(screen,"Using Intel Coprocessor with %d threads per core, ",
|
||||
_offload_tpc);
|
||||
fprintf(screen,"%d threads per task\n",_offload_threads);
|
||||
} else {
|
||||
fprintf(screen,"Using Intel Package without Coprocessor.\n");
|
||||
}
|
||||
fprintf(screen,"Precision: %s\n",kmode);
|
||||
if (cdmessage) {
|
||||
#ifdef LMP_USE_AVXCD
|
||||
fprintf(screen,"AVX512 CD Optimizations: Enabled\n");
|
||||
#else
|
||||
fprintf(screen,"AVX512 CD Optimizations: Disabled\n");
|
||||
#endif
|
||||
}
|
||||
fprintf(screen,
|
||||
"----------------------------------------------------------\n");
|
||||
utils::logmesg(lmp, "----------------------------------------------------------\n");
|
||||
if (_offload_balance != 0.0) {
|
||||
utils::logmesg(lmp,"Using Intel Coprocessor with {} threads per core, "
|
||||
"{} threads per task\n",_offload_tpc, _offload_threads);
|
||||
} else {
|
||||
utils::logmesg(lmp,"Using INTEL Package without Coprocessor.\n");
|
||||
}
|
||||
utils::logmesg(lmp,"Compiler: {}\n",platform::compiler_info());
|
||||
#ifdef LMP_SIMD_COMPILER
|
||||
utils::logmesg(lmp,"SIMD compiler directives: Enabled\n");
|
||||
#else
|
||||
utils::logmesg(lmp,"SIMD compiler directives: Disabled\n");
|
||||
#endif
|
||||
utils::logmesg(lmp,"Precision: {}\n",kmode);
|
||||
if (cdmessage) {
|
||||
#ifdef LMP_USE_AVXCD
|
||||
utils::logmesg(lmp,"AVX512 CD Optimizations: Enabled\n");
|
||||
#else
|
||||
utils::logmesg(lmp,"AVX512 CD Optimizations: Disabled\n");
|
||||
#endif
|
||||
}
|
||||
utils::logmesg(lmp, "----------------------------------------------------------\n");
|
||||
}
|
||||
_print_pkg_info = 0;
|
||||
}
|
||||
|
||||
@ -31,8 +31,7 @@ using namespace LAMMPS_NS;
|
||||
NPairIntel::NPairIntel(LAMMPS *lmp) : NPair(lmp) {
|
||||
int ifix = modify->find_fix("package_intel");
|
||||
if (ifix < 0)
|
||||
error->all(FLERR,
|
||||
"The 'package intel' command is required for /intel styles");
|
||||
error->all(FLERR,"The 'package intel' command is required for /intel styles");
|
||||
_fix = static_cast<FixIntel *>(modify->fix[ifix]);
|
||||
#ifdef _LMP_INTEL_OFFLOAD
|
||||
_cop = _fix->coprocessor_number();
|
||||
@ -657,6 +656,7 @@ void NPairIntel::bin_newton(const int offload, NeighList *list,
|
||||
ns += n2 - pack_offset - maxnbors;
|
||||
|
||||
#ifdef LMP_INTEL_3BODY_FAST
|
||||
int alln = n;
|
||||
n = lane;
|
||||
for (int u = pack_offset; u < alln; u++) {
|
||||
neighptr[n] = neighptr2[u];
|
||||
|
||||
@ -1115,8 +1115,7 @@ void PairSWIntel::init_style()
|
||||
|
||||
int ifix = modify->find_fix("package_intel");
|
||||
if (ifix < 0)
|
||||
error->all(FLERR,
|
||||
"The 'package intel' command is required for /intel styles");
|
||||
error->all(FLERR,"The 'package intel' command is required for /intel styles");
|
||||
fix = static_cast<FixIntel *>(modify->fix[ifix]);
|
||||
|
||||
fix->pair_init_check(true);
|
||||
|
||||
Reference in New Issue
Block a user