Skip to content

Instantly share code, notes, and snippets.

@scivision
scivision / CMakeLists.txt
Last active March 9, 2026 04:11
build script for LLVM & Flang-f18 Fortran compiler
cmake_minimum_required(VERSION 3.25)
project(build_flang_f18_external LANGUAGES NONE)
include(ExternalProject)
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
message(FATAL_ERROR "Please tell install location with 'cmake --install-prefix'")
endif()
@matthiasdiener
matthiasdiener / build-gcc-offload-nvptx.sh
Last active May 29, 2024 14:11
Script to build gcc with OpenMP offloading to Nvidia devices (via nvptx)
#!/bin/bash
#
# Build GCC with support for offloading to NVIDIA GPUs.
#
set -o nounset -o errexit
# Location of the installed CUDA toolkit
cuda=/usr/local/cuda