#include "gromacs/utility/stringutil.h"
#if GMX_GPU == GMX_GPU_OPENCL
-#include <clFFT.h>
+# include <clFFT.h>
#endif
namespace gmx
* initialize it more than once. */
//! @{
gmx_unused bool g_clfftInitialized = false;
-gmx::Mutex g_clfftMutex;
+gmx::Mutex g_clfftMutex;
//! @}
-} // namespace
+} // namespace
ClfftInitializer::ClfftInitializer()
{
int initErrorCode = clfftInitSetupData(&fftSetup);
if (initErrorCode != 0)
{
- GMX_THROW(InternalError(formatString("Failed to initialize the clFFT library, error code %d", initErrorCode)));
+ GMX_THROW(InternalError(formatString(
+ "Failed to initialize the clFFT library, error code %d", initErrorCode)));
}
initErrorCode = clfftSetup(&fftSetup);
if (initErrorCode != 0)
{
- GMX_THROW(InternalError(formatString("Failed to initialize the clFFT library, error code %d", initErrorCode)));
+ GMX_THROW(InternalError(formatString(
+ "Failed to initialize the clFFT library, error code %d", initErrorCode)));
}
g_clfftInitialized = true;
#else
#endif
}
-} // namespace gmx
+} // namespace gmx