Skip to content

Instantly share code, notes, and snippets.

View keisukefukuda's full-sized avatar

Keisuke Fukuda keisukefukuda

View GitHub Profile
@keisukefukuda
keisukefukuda / shibuya-el-position-paper.md
Created September 6, 2012 06:22 — forked from ainame/shibuya-el-position-paper.md
shibuya.elのポジションペーパーです。githubアカウントをお持ちの方はforkしてお使いください。

Shibuya.el#1 ポジションペーパー

Personal

  • 名前(任意)

    • Keisuke Fukuda (福田圭祐)
  • Twitter or Facebookのアカウント or HN等

  • @keisukefukuda / @freakda_

diff -uprN ../Python-3.5.0/Modules/Setup.dist ./Modules/Setup.dist
--- ../Python-3.5.0/Modules/Setup.dist 2015-09-13 20:41:24.000000000 +0900
+++ ./Modules/Setup.dist 2015-11-16 15:14:40.014701000 +0900
@@ -204,10 +204,10 @@ _symtable symtablemodule.c
# Socket module helper for SSL support; you must comment out the other
# socket line above, and possibly edit the SSL variable:
-#SSL=/usr/local/ssl
-#_ssl _ssl.c \
-# -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
@keisukefukuda
keisukefukuda / slogin.sh
Created November 19, 2015 05:19
Allocate nodes in X-queue for interactive use
#!/bin/bash
#
# slogin.sh - Allocate nodes in X-queue for S-queue login technique
#
# Copyright (c) 2015 Keisuke Fukuda
# Distributed under the MIT license.
#
# Configuration
#!/usr/bin/python
import sys,os
START = 0
WALL = 1
GOAL = 2
OPEN = 3
class Maze(object):
@keisukefukuda
keisukefukuda / default_ctr.cpp
Created September 24, 2013 19:16
Compiler compatibility test
#include <map>
#include <string>
using namespace std;
// This is OK.
void func(map<string,string> a=map<string,string>()) {
return;
}
@keisukefukuda
keisukefukuda / tbb_minimal.cpp
Created October 23, 2013 14:48
A minimal Intel TBB program
// $ icpc -tbb tbb_minimal.cpp
#include <tbb/task_scheduler_init.h>
int main() {
tbb::task_scheduler_init init;
return 0;
}
@keisukefukuda
keisukefukuda / exafmm_p2p.aspen
Created October 30, 2013 15:51
exaFMM P2P kernel model file
// non-SIMD P2P kernel model
model exaFMM_P2P {
// Double precision
param wordSize = 8
param Ni = 20
param Nj = 20
param mutual = 1
data trgBodies[Ni * 3 * wordSize]
data srcBodies[Nj * 3 * wordSize]
@keisukefukuda
keisukefukuda / measure_sqrt_flops.cpp
Created December 27, 2013 01:21
Measure #FLOP of sqrt() function using PAPI.
/*
* measure_sqrt_flops.cpp
* Copyright (C) 2013 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 of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
This file has been truncated, but you can view the full file.
execve("./measure_create", ["./measure_create"], [/* 131 vars */]) = 0
brk(0) = 0x618000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b844be4a000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b844be4b000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/usr/apps.sp3/isv/intel/2015.2.164/composer_xe_2015.2.164/compiler/lib/intel64/tls/x86_64/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/apps.sp3/isv/intel/2015.2.164/composer_xe_2015.2.164/compiler/lib/intel64/tls/x86_64", 0x7fffb24c01c0) = -1 ENOENT (No such file or directory)
open("/usr/apps.sp3/isv/intel/2015.2.164/composer_xe_2015.2.164/compiler/lib/intel64/tls/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/apps.sp3/isv/intel/2015.2.164/composer_xe_2015.2.164/compiler/lib/intel64/tls", 0x7fffb24c01c0) = -1 ENOENT (No such file or directory)
open("/usr/apps.sp3/isv/intel/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <myth/myth.h>
#ifdef MPI
#include <mpi.h>