Skip to content

Instantly share code, notes, and snippets.

@rtohid
rtohid / bootstrap.sh
Last active October 27, 2017 23:25 — forked from parsa/.gitignore
#!/bin/bash
set -x
_RDIR_=$PWD
mkdir blaze
pushd blaze
git clone --depth=1 https://bitbucket.org/blaze-lib/blaze.git repo
mkdir -p {build,install}
pushd build
cmake -DCMAKE_INSTALL_PREFIX=$_RDIR_/install -DBOOST_ROOT=/opt/boost/1.65-gcc-7.2.0/ -DBLAZE_SMP_THREADS=C++11 ../repo
make -j
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/usr/bin/ld: cannot find -lhpx_init
/usr/bin/ld: cannot find -lhpx
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/driver.dir/build.make:126: driver] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/driver.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
/usr/bin/ld: cannot find -lhpx_init
/usr/bin/ld: cannot find -lhpx
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/driver.dir/build.make:126: driver] Error 1
@rtohid
rtohid / gist:d4772ad4753982a0e8b97bf50a412055
Created August 10, 2018 20:12
flecsi-third-part config
cmake \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=$INSTALL_PATH \
-DENABLE_CALIPER=ON \
-DENABLE_CINCH_UTILS=ON \
-DENABLE_EXODUS=OFF \
-DENABLE_GASNET=ON \
-DENABLE_HDF5=ON \
-DENABLE_HPX=ON \
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_PREFIX_PATH=/.../install/flecsi-third-party \
-DENABLE_UNIT_TESTS=On \
-DCMAKE_INSTALL_PREFIX=$INSTALL_PATH \
-DENABLE_PARMETIS=On \
-DENABLE_METIS=On \
-DENABLE_COLORING=On \
-DFLECSI_RUNTIME_MODEL=hpx \
-DENABLE_DEVEL_TARGETS=On \
@rtohid
rtohid / gist:6da8a5560c2604199e7c7a2c32c17e6f
Created August 10, 2018 20:18
flecsit CMakeLists.txt
#------------------------------------------------------------------------------#
# Copyright (c) 2014 Los Alamos National Security, LLC
# All rights reserved.
#------------------------------------------------------------------------------#
cmake_minimum_required(VERSION 2.8)
project(flecsit_compile_driver)
find_package(FleCSI REQUIRED)
; ModuleID = 'sum'
source_filename = "<string>"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@"_ZN08NumbaEnv8__main__7sum$241Eii" = common local_unnamed_addr global i8* null
@.const.sum = internal constant [4 x i8] c"sum\00"
@PyExc_RuntimeError = external global i8
@".const.missing Environment" = internal constant [20 x i8] c"missing Environment\00"
from numba import jit, int32
@jit(int32(int32, int32))
def sum(x, y):
return x + y
# Phylanx: 132f51b699eb1851725d02b4ce6e1cee570a09e5
# HPX: 3418d96f1e811b336cfe1bbfc68c95764cd0e14a
_error = "Segmentation fault (core dumped)"
import numpy as np
from phylanx import Phylanx
@Phylanx(debug=1)
from phylanx import Phylanx
# import tensorflow as tf
# @tf.function
# def foo():
# a = 2
# print(tf.autograph.to_code(foo.python_function))