Just a simple tar.gz with a text file for testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required (VERSION 3.20) | |
project(detectChange LANGUAGES Fortran) | |
add_executable(main.x main.f90 moda.f90 modb.f90) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.23) | |
project(BenchmarkCheck LANGUAGES C) | |
include(CheckIncludeFile) | |
include(CheckCompilerFlag) | |
message(STATUS "CMake ${CMAKE_VERSION} ${CMAKE_GENERATOR} using ${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION}") | |
set(N 5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DUMMY | |
.dummy |
This is a Bash script (macOS, Linux, ...) for building Flang-f18 and LLVM from source. It is adapted from Jeff Hammond
Ninja: recommended for best build efficiency and speed.
In general, a recent GCC would work. On macOS, system AppleClang compiler can be used as well.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.15) | |
project(mpitest LANGUAGES Fortran) | |
enable_testing() | |
find_package(MPI COMPONENTS Fortran REQUIRED) | |
include(TestMPILauncher.cmake) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# benchmark download of URL vs. Git | |
# benchmark with CMake 3.28.2 on Windows with gigabit internet connection. | |
# | |
# Python 3.12.2 source | |
# 7 seconds: URL archive 27583112 bytes | |
# 84 seconds GIT_SHALLOW=true | |
# 132 seconds GIT_SHALLOW=false | |
# | |
# CMake 3.28.3 source: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# copied from https://superuser.com/a/1808022 | |
$procs = Get-Process | |
$ports = netstat -ano | |
$ports[4..$ports.length] | | |
# First column comes back empty, so we set to "ProcessName" as a placeholder for later | |
ConvertFrom-String -PropertyNames ProcessName,Proto,Local,Remote,State,PID | | |
where State -eq 'LISTENING' | | |
foreach { | |
$_.ProcessName = ($procs | where ID -eq $_.PID).ProcessName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.19) | |
project(piper LANGUAGES C) | |
enable_testing() | |
add_executable(piper main.c) | |
add_test(NAME piper COMMAND piper) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# force use of presets via sentinel environment variable set in presets only | |
cmake_minimum_required(VERSION 3.21) | |
project(envpre LANGUAGES C) | |
message(STATUS "sentinel: $ENV{sentinel}") | |
include(CheckSentinel.cmake) | |
add_executable(main main.c) |