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

SU2 compilation with different AD library than CoDiPack

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 8, 2020, 10:14
Cool SU2 compilation with different AD library than CoDiPack
  #1
New Member
 
JoN
Join Date: Oct 2020
Posts: 2
Rep Power: 0
snes_chalmers is on a distinguished road
Hello SU2-ers,

I was wondering how to compile SU2 using a different AD tool than the default CoDiPack. I need this in order to benchmark different AD tools and I see that ADOLC is (or was previously) supported in the sources. Nevertheless, whenever I try to use the preconfigure.py file to select ADOLC, the compilation fails (and no options seem available using the meson+ninja build tools). Does anyone know if it is still possible to use ADOL-c with SU2? If it is possible, could anyone guide me or point to a thread that shows how to do it?

Thanks in advance for any information.

cheers,

JoN

Last edited by snes_chalmers; October 9, 2020 at 09:50.
snes_chalmers is offline   Reply With Quote

Old   October 9, 2020, 06:54
Default
  #2
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 304
Rep Power: 7
pcg is on a distinguished road
I don't much know nor care about past versions, but currently it is CoDi and Medi pack only.

However, all types and functions are nicely wrapped, you might get away with modifying only:
Common/include/basic_types/ad_structure.hpp
Common/src/basic_types/ad_structure.cpp
Common/include/basic_types/datatype_structure.hpp
Common/include/linear_algebra/CSysSolve_b.hpp
Common/src/linear_algebra/CSysSolve_b.cpp

If you go the route of modifying the code, consider joining the SU2 slack channel https://su2code.github.io/ (button on top bar) we have weekly developers meetings and I think we would all be interested in seeing this comparison, and happy to help with anything.

If you use older version your measurements will be masked by performance bottlenecks we used to have. Version 7.0.7 is 4+ times faster than 6.2.0.

Regards
pcg is offline   Reply With Quote

Old   October 9, 2020, 09:00
Default Reply
  #3
New Member
 
JoN
Join Date: Oct 2020
Posts: 2
Rep Power: 0
snes_chalmers is on a distinguished road
Thanks PCG for your prompt reponse and for making it clear that ADOLC is no longer currently supported with SU2 v7+. I will take a look at the files you mention to see if I can manage to make it work. I will also seemingly need to modify the compilation scripts which might not be straightforward for me because I have no prior experience with meson and ninja.

thanks again for coming to the aid of su2 users and devs.

cheers,

JoN

Quote:
Originally Posted by pcg View Post
I don't much know nor care about past versions, but currently it is CoDi and Medi pack only.

However, all types and functions are nicely wrapped, you might get away with modifying only:
Common/include/basic_types/ad_structure.hpp
Common/src/basic_types/ad_structure.cpp
Common/include/basic_types/datatype_structure.hpp
Common/include/linear_algebra/CSysSolve_b.hpp
Common/src/linear_algebra/CSysSolve_b.cpp

If you go the route of modifying the code, consider joining the SU2 slack channel https://su2code.github.io/ (button on top bar) we have weekly developers meetings and I think we would all be interested in seeing this comparison, and happy to help with anything.

If you use older version your measurements will be masked by performance bottlenecks we used to have. Version 7.0.7 is 4+ times faster than 6.2.0.

Regards
snes_chalmers is offline   Reply With Quote

Old   October 9, 2020, 18:32
Default
  #4
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 304
Rep Power: 7
pcg is on a distinguished road
Happy to help.

If ADOLC is header only like CoDi it is just a matter of mimicking what is done in the file meson.build for option "enable-autodiff".
pcg is offline   Reply With Quote

Reply

Tags
adolc, codipack, compilation

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
Introducing SU2 International Developers Society (IDS) fpalacios SU2 News & Announcements 1 June 17, 2019 22:38
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 00:53
decomposePar is missing a library whk1992 OpenFOAM Pre-Processing 8 March 7, 2015 07:53
Building SU2 with TecIO Library on OS X RcktMan77 SU2 Installation 1 January 16, 2015 02:17
custom code compilation error: library linking problem nadine OpenFOAM Programming & Development 5 October 10, 2014 09:58


All times are GMT -4. The time now is 05:54.