|
[Sponsors] |
SU2 compilation with different AD library than CoDiPack |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 8, 2020, 11:14 |
SU2 compilation with different AD library than CoDiPack
|
#1 |
New Member
JoN
Join Date: Oct 2020
Posts: 2
Rep Power: 0 |
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 10:50. |
|
October 9, 2020, 07:54 |
|
#2 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14 |
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 |
|
October 9, 2020, 10:00 |
Reply
|
#3 | |
New Member
JoN
Join Date: Oct 2020
Posts: 2
Rep Power: 0 |
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:
|
||
October 9, 2020, 19:32 |
|
#4 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14 |
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". |
|
Tags |
adolc, codipack, compilation |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Introducing SU2 International Developers Society (IDS) | fpalacios | SU2 News & Announcements | 1 | June 17, 2019 23:38 |
UDF Compilation Error - Loading Library - COMMON Problem! Help! | robtheslob | Fluent UDF and Scheme Programming | 8 | July 24, 2015 01:53 |
decomposePar is missing a library | whk1992 | OpenFOAM Pre-Processing | 8 | March 7, 2015 08:53 |
Building SU2 with TecIO Library on OS X | RcktMan77 | SU2 Installation | 1 | January 16, 2015 03:17 |
custom code compilation error: library linking problem | nadine | OpenFOAM Programming & Development | 5 | October 10, 2014 10:58 |