Skip to content

Instantly share code, notes, and snippets.

View keisukefukuda's full-sized avatar

Keisuke Fukuda keisukefukuda

View GitHub Profile
# Example output
"""
f : 0.000139 [s]
sync after f : 0.870124 [s]
f2 : 0.820720 [s]
sync after f2 : 0.000009 [s]
g : 0.821427 [s]
sync after g : 0.000004 [s]
@keisukefukuda
keisukefukuda / wildcard.c
Last active December 4, 2018 12:01
Simple recursion-based wildcard matching
/*
* Wildcard matching program in recursive algorithm.
*
* Copyright 2018 Keisuke Fukuda
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify, merge, publish, distribute, sublicense, and/or sell copies
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by ucx configure 1.3, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/home/kfukuda/ucx/install --with-cuda=/usr/local/cuda
## --------- ##
## Platform. ##
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by ucx configure 1.5, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/home/kfukuda/ucx/install --with-cuda=/usr/local/cuda
## --------- ##
## Platform. ##
$ date -u
Fri Sep 7 05:46:50 UTC 2018
$ git checkout -t upstream/v1.4.x
Branch v1.4.x set up to track remote branch v1.4.x from upstream.
Switched to a new branch 'v1.4.x'
$ git show | head -n 1
commit 236b965edc48e3fdbd2bc41552f079420aee6a7d
$ date -u
Fri Sep 7 05:51:09 UTC 2018
$ git checkout -t upstream/v1.3.x
Branch v1.3.x set up to track remote branch v1.3.x from upstream.
Switched to a new branch 'v1.3.x'
git show | head -n 1
commit 64f853d14dca5aa565b4bc0081faca2e6a0407a7
$ date -u
Fri Sep 7 05:38:19 UTC 2018
$ git show | head -n 1
commit c4329f0fdcc341fbbe962152588d78346db38d97
$ make distclean
$ ./autogen.sh && ./configure --prefix=$PWD/install --with-cuda=/usr/local/cuda && make -j install 2>&1 | tee master.log
@keisukefukuda
keisukefukuda / uct_hello_world.c
Last active August 29, 2018 23:20
uct_hello_world.c
/**
* Copyright (C) UT-Battelle, LLC. 2015. ALL RIGHTS RESERVED.
* See file LICENSE for terms.
*/
/*
* gcc -o uct_hello_world uct_hello_world.c -luct -lucs -I${UCX_PREFIX}/include -L${UCX_PREFIX}/lib -Wl,-rpath,${UCX_PREFIX}/lib -pedantic
*
* $ ./uct_hello_world -z -t ud -d mlx4_0:1
* [1] 26666
@keisukefukuda
keisukefukuda / uct_hello_world.c
Created August 25, 2018 00:41
Modified uct_hello_world.c
/**
* Copyright (C) UT-Battelle, LLC. 2015. ALL RIGHTS RESERVED.
* See file LICENSE for terms.
*/
#include <uct/api/uct.h>
#include <assert.h>
#include <ctype.h>
#include <stdlib.h>
#include <cassert>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>