-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cabana requires host backend for HeFFTe #794
Comments
Can you add the details of how you've configured heffte? The error is pointing out that you may only have cufft enabled, but we require one of fftw or mkl as well |
Is that not something we could diagnose at configuration time? |
You're right, that should be an easy update |
Thanks for the inputs @streeve . To resolve the issue, I installed fftw to ensure compatibility with heffte. The key was to install fftw with shared libraries enabled and generate both single and double precision libraries. This required installing fftw twice with specific configuration flags. Step 1: Install fftw (Double Precision)First, install fftw with double precision: cd fftw
./configure --enable-shared --enable-threads --enable-openmp --enable-mpi
make -j 6
sudo make install Step 2: Install fftw (Single Precision)Next, install fftw with single precision by adding the --enable-float flag: cd fftw
./configure --enable-shared --enable-float --enable-threads --enable-openmp --enable-mpi
make -j 6
sudo make install These steps will install the necessary shared libraries in /usr/local/lib, which heffte can use. Step 3: Install heffteNow, proceed with installing heffte: cd heffte
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=$HEFFTE_INSTALL_DIR -D Heffte_ENABLE_FFTW=ON ../
make
make install Step 4: Complete Setup for CabanaFinally, follow the remaining instructions for Cabana, ensuring that heffte is enabled during the process. |
Hi all,
I am currently working with the CabanaPF (phase field) code for battery modeling, which requires the HeFFTe library. I successfully installed HeFFTe, but I am encountering issues when building Cabana with HeFFTe.
During the build process, I am facing the following error
I am not sure how to fix this thing. Any idea on how to fix this.
Many thanks.
The text was updated successfully, but these errors were encountered: