Skip to content

Instantly share code, notes, and snippets.

View erikzenker's full-sized avatar
🤖
lost in the tunnel

Erik Zenker erikzenker

🤖
lost in the tunnel
View GitHub Profile
./bootstrap --prefix=$HOME
./b2 link=shared runtime-link=shared threading=multi,single variant=release debug-symbols=on toolset=gcc -a -q -j3 --layout=versioned architecture=power host-os=linux stage
./b2 link=shared runtime-link=shared threading=multi,single variant=release debug-symbols=on toolset=gcc -q -j3 --layout=versioned architecture=power host-os=linux install
# --without-iostreams
# for xlc: toolset=vacpp
#include <iostream> /* std::cout, std::endl */
#include <type_traits> /* std::enable_if */
// SFINAE test
template <typename T>
class has_extendedFoo {
typedef char one;
typedef long two;
@erikzenker
erikzenker / CMakeLists.txt
Last active April 15, 2024 17:17
CMake CUDA + C++ in separate files
# CMAKE FILE to separatly compile cuda and c++ files
# with the c++11 standard
#
#
# Folder structure:
#
# |
# +--main.cpp (with C++11 content)
# +--include/
# | |
#include <vector>
#include <iostream>
#include <algorithm>
#include <iterator>
template<typename T>
struct Scan {
T value;
@erikzenker
erikzenker / metis.cc
Created March 10, 2015 14:49
Metis usage example
#include <cstddef> /* NULL */
#include <metis.h>
#include <iostream>
// Install metis from:
// http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz
// Build with
// g++ metis.cc -lmetis