Skip to content

Instantly share code, notes, and snippets.

@parsa
Created April 15, 2019 15:27
Show Gist options
  • Save parsa/6dce2805b3a75923f00d76d9f0da2be5 to your computer and use it in GitHub Desktop.
Save parsa/6dce2805b3a75923f00d76d9f0da2be5 to your computer and use it in GitHub Desktop.
HPX through DNF on Fedora
# docker run -it --rm fedora
#find / -iname 'hpx*config.cmake'
dnf install hpx-mpich-devel gcc-c++ cmake make ninja-build environment-modules vim -y
source /usr/share/Modules/init/bash
module load mpi/mpich-x86_64
mkdir -p /work
cd /work
cat >/work/prog.cpp <<EOF
#include <hpx/hpx.hpp>
int main()
{
return 0;
}
EOF
cat >/work/CMakeLists.txt <<EOF
cmake_minimum_required(VERSION 3.3)
project(priekt CXX)
find_package(HPX REQUIRED)
add_hpx_executable(prog SOURCES prog.cpp)
EOF
cmake -H. -Bbuild -DHPX_IGNORE_COMPILER_COMPATIBILITY=ON -GNinja
#rm -rf build/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment