ATLAS build questions

ATLAS gives a higher performance subset of LAPACK. ATLAS was last released in 2016, and has problems building on modern computers. Debian and Ubuntu have numerous patches needed to build ATLAS. Thus we don’t currently have an easy CMake script to build ATLAS as we do for other popular libraries like LAPACK, Scalapack, METIS and Scotch.

An attempt to build ATLAS via CMake that fails due to ATLAS Autotools issues using FindAutotools.cmake:

cmake_minimum_required(VERSION 3.19...3.25)

project(atlas LANGUAGES C)

include(ExternalProject)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

set(atlas_url https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/atlas/3.10.3-10ubuntu3/atlas_3.10.3-10ubuntu3.debian.tar.xz)

find_package(Autotools REQUIRED)

ExternalProject_Add(atlas
URL ${atlas_url}
UPDATE_DISCONNECTED true
CONFIGURE_HANDLED_BY_BUILD true
CONFIGURE_COMMAND <SOURCE_DIR>/configure
BUILD_COMMAND ${MAKE_EXECUTABLE} -j
INSTALL_COMMAND ${MAKE_EXECUTABLE} -j install
)