allow single precision FFT introspection
This commit is contained in:
11
src/info.cpp
11
src/info.cpp
@ -299,6 +299,7 @@ void Info::command(int narg, char **arg)
|
||||
if (has_png_support()) fputs("-DLAMMPS_PNG\n",out);
|
||||
if (has_jpeg_support()) fputs("-DLAMMPS_JPEG\n",out);
|
||||
if (has_ffmpeg_support()) fputs("-DLAMMPS_FFMPEG\n",out);
|
||||
if (has_fft_single_support()) fputs("-DFFT_SINGLE\n",out);
|
||||
if (has_exceptions()) fputs("-DLAMMPS_EXCEPTIONS\n",out);
|
||||
|
||||
#if defined(LAMMPS_BIGBIG)
|
||||
@ -879,6 +880,8 @@ bool Info::is_available(const char *category, const char *name)
|
||||
return has_jpeg_support();
|
||||
} else if (strcmp(name,"ffmpeg") == 0) {
|
||||
return has_ffmpeg_support();
|
||||
} else if (strcmp(name,"fft_single") == 0) {
|
||||
return has_fft_single_support();
|
||||
} else if (strcmp(name,"exceptions") == 0) {
|
||||
return has_exceptions();
|
||||
}
|
||||
@ -1127,6 +1130,14 @@ bool Info::has_ffmpeg_support() {
|
||||
#endif
|
||||
}
|
||||
|
||||
bool Info::has_fft_single_support() {
|
||||
#ifdef FFT_SINGLE
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool Info::has_exceptions() {
|
||||
#ifdef LAMMPS_EXCEPTIONS
|
||||
return true;
|
||||
|
||||
@ -42,6 +42,7 @@ class Info : public Command {
|
||||
static bool has_png_support();
|
||||
static bool has_jpeg_support();
|
||||
static bool has_ffmpeg_support();
|
||||
static bool has_fft_single_support();
|
||||
static bool has_exceptions();
|
||||
static bool has_package(const std::string &);
|
||||
static bool has_accelerator_feature(const std::string &, const std::string &,
|
||||
|
||||
@ -1348,6 +1348,7 @@ void LAMMPS::print_config(FILE *fp)
|
||||
if (Info::has_png_support()) fputs("-DLAMMPS_PNG\n",fp);
|
||||
if (Info::has_jpeg_support()) fputs("-DLAMMPS_JPEG\n",fp);
|
||||
if (Info::has_ffmpeg_support()) fputs("-DLAMMPS_FFMPEG\n",fp);
|
||||
if (Info::has_fft_single_support()) fputs("-DFFT_SINGLE\n",fp);
|
||||
if (Info::has_exceptions()) fputs("-DLAMMPS_EXCEPTIONS\n",fp);
|
||||
#if defined(LAMMPS_BIGBIG)
|
||||
fputs("-DLAMMPS_BIGBIG\n",fp);
|
||||
|
||||
Reference in New Issue
Block a user