Just a simple tar.gz with a text file for testing
This file contains 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(opt LANGUAGES Fortran) | |
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | |
# https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2024-2/warn.html | |
# SHELL: allows using | |
# * spaces in compiler options (especially important for Intel oneAPI | |
# * repeated option prefix, that might otherwise get deduplicated incorrectly |
This file contains 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(min LANGUAGES CXX) | |
message(STATUS "CMAKE_OSX_SYSROOT ${CMAKE_OSX_SYSROOT}") | |
foreach(i IN ITEMS OS_NAME OS_VERSION OS_RELEASE OS_PLATFORM) | |
cmake_host_system_information(RESULT ${i} QUERY ${i}) | |
message(STATUS "${i}: ${${i}}") | |
endforeach() |
This file contains 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 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 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 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 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 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 |
NewerOlder