CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] custom FFTW in OpenFOAM-v2206

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2022, 08:38
Default custom FFTW in OpenFOAM-v2206
  #1
New Member
 
Max R. Dechantsreiter
Join Date: Aug 2022
Posts: 3
Rep Power: 2
PerformanceJonesLLC is on a distinguished road
I would like to use my own FFTW in OpenFOAM-v2206. Following the instructions in etc/config.sh/FFTW:


# For central installations not located under ThirdParty:
# 1. use fftw-system
# 2. and provide full path for FFTW_ARCH_PATH



I set


fftw_version=fftw-system
export FFTW_ARCH_PATH=<full path to my intallation>


where


> ls $FFTW_ARCH_PATH
cmake libfftw3f.la libfftw3f.so.3.6.10 libfftw3.so.3
libfftw3.a libfftw3f.so libfftw3.la libfftw3.so.3.6.10
libfftw3f.a libfftw3f.so.3 libfftw3.so pkgconfig


Yet when I build, the fft is not found (and so some components are skipped).


What have I missed?
PerformanceJonesLLC is offline   Reply With Quote

Old   August 16, 2022, 06:58
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 517
Blog Entries: 1
Rep Power: 14
dlahaye is on a distinguished road
Not sure.

Do you observe linking with the FFTW libraries that you provide during the build?

Does "nm -g <executable-name>" provide valuable information?
dlahaye is offline   Reply With Quote

Old   August 16, 2022, 12:09
Default
  #3
New Member
 
Max R. Dechantsreiter
Join Date: Aug 2022
Posts: 3
Rep Power: 2
PerformanceJonesLLC is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
Not sure.

Do you observe linking with the FFTW libraries that you provide during the build?

Does "nm -g <executable-name>" provide valuable information?
In the log file:


Using none/system (skip ThirdParty build of FFTW)


and later:


==> skip randomProcesses library (no FFTW)


As an aside, I have built OpenFOAM with my Boost (and GMP and MPFR):


# Use my Boost...

CGAL=$WM_PROJECT_DIR/etc/config.sh/CGAL
cp -ip $CGAL $CGAL.0
sed -i "s/^\(boost_version\)=.*$/\1=boost-system/" $CGAL
sed -i "s|^\(export BOOST_ARCH_PATH\)=.*$|\1=$PROJECT/opt/gnu/lib/$BOOST|" $CGAL

# ...Use my GMP and MPFR

sed -i "s|^# \(export GMP_ARCH_PATH\)=.*$|\1=$PROJECT/lib/gmp-6.2.1|" $CGAL
sed -i "s|^# \(export MPFR_ARCH_PATH\)=.*$|\1=$PROJECT/lib/mpfr-4.1.0|" $CGAL

and this worked---CGAL was successfully built. In simpler terms, I only had to set BOOST_ARCH_PATH, GMP_ARCH_PATH, and MPFR_ARCH_PATH appropriately; yet the same does not appear to work for the FFTW.
PerformanceJonesLLC is offline   Reply With Quote

Old   August 21, 2022, 12:00
Default SOLVED/possible dependency error
  #4
New Member
 
Max R. Dechantsreiter
Join Date: Aug 2022
Posts: 3
Rep Power: 2
PerformanceJonesLLC is on a distinguished road
Evidently there may be a dependency error in the build, for I found that while Vandermonde.o was compiled, the link for libvandermonde.so did not find this object. Somehow this resulted in the build not executing $WM_PROJECT_DIR/wmake/scripts/have_fftw and consequently neither FFTW_INC_DIR nor FFTW_LIB_DIR were set, with outcome (for example)


==> skip randomProcesses library (no FFTW)


By simply running Allwmake again (in the same environment), everything was built, moreover the FFTW I had specified via $WM_PROJECT_DIR/etc/config.sh/FFTW by FFTW_ARCH_PATH was used:


ldd librandomProcesses.so | grep fftw
libfftw3.so.3 => /home/maxd/GNU/opt/gnu/lib/fftw-3.3.10_gcc-12.1.0/lib/libfftw3.so.3 (0x00007fd63bb67000)


Is such a dependency error deserving of a bug report?
PerformanceJonesLLC is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 09:51
OpenFOAM output files custom post-processing pmarreiro OpenFOAM Post-Processing 0 January 6, 2018 10:17
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 16:54
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24


All times are GMT -4. The time now is 02:00.