You are here

Optimizing rosetta builds for AMD Epyc/Ryzen processors

3 posts / 0 new
Last post
Optimizing rosetta builds for AMD Epyc/Ryzen processors

Hi all,


Does anyone know how best to optimize compiling rosetta to take advantage of AMD Epyc (zen3/zen4) and Ryzen archatectures? 

For example: 

AMD offers an optimized fortran compiler called AOCC ( What might be the best way to make use of this? Can it be invoked directly using the "cxx=" flag in "" or must one configure the OS directly - and if so, how?

Some newer Epyc processors offer very large L3 caches (768MB and soon over 1GB). Can Rosetta make use of this extra cache? Is there a way to have roseta make specific use of this extra cache - either at build or runtime?

AMD offers a number of optimized numerical libraries collectively called AOCL ( Does roseta make use of any of these libraries? Might it in the future? 


Any input, suggestions or pointers to more info are welcome. 


Many thanks,




Post Situation: 
Tue, 2022-11-01 16:08

Rosetta is a C++ program, so a Fortran-specific compiler won't help.  If there's a corresponding C & C++ compiler, you can specify that in the site.settings file. The released version should have a site.settings which has spots for specifing the path to the specific compiler you want to use. (The cxx setting on the scons command line is only for switching between the default gcc/clang/icc versions.) That file can also be used to add in any compiler-specific optimization flags which would be used to tweak the compile for the specific processors you're using.

As I understand it, L3 cache should be automatically used by the program when needed. (It will speed up all memory accesses.) You're in a bit of "luck" there, as Rosetta tends to suffer from L3 cache misses more than some other programs, which means that you'll probably see a bigger effect with a larger L3 cache with Rosetta versus some other programs.

Rosetta isn't able to use AOCL, but for the most part it doesn't use the sort of high-powered compute libraries like BLAS that AOCL is apparently substituing for.


Wed, 2022-11-02 06:57

Thanks Rocco!

I was under the impression that rosetta still uses some small bits of numerical fortran code and requires a fortran compiler, but perhaps I'm wayyyy behind the times - or confusing rosetta with some other code base like Gromacs or the like. Thanks for setting me straight. And good to know that it can benefit from the added L3 cache.




Wed, 2022-11-02 10:39