Skip to content

Instantly share code, notes, and snippets.

Avatar

Keisuke Fukuda keisukefukuda

View GitHub Profile
View titech_portal_auto_login.user.js
// ==UserScript==
// @name Titech Portal Auto Login
// @namespace http://www.titech.ac.jp/
// @id titech-portal-auto-login@www.titech.ac.jp
// @description 東工大ポータルに自動的にログインします
// @author NAKASHIMA, Makoto <makoto.nksm@gmail.com>
// @include https://portal1.nap.gsic.titech.ac.jp/*
// @include https://portal.nap.gsic.titech.ac.jp/*
// @include http://portal.titech.ac.jp/*
// @jsversion 1.8
View gist:1991869
#!/bin/sh
IF=eth0
iptables -F
iptables -t nat -F
iptables -X
iptables -Z
# drop all packets by default
@keisukefukuda
keisukefukuda / simple_omp.cpp
Created Apr 25, 2012
Simple code to test StarPU's combined worker feature.
View simple_omp.cpp
// Simple program using combined worker.
#include <iostream>
#include <starpu.h>
#include <omp.h>
starpu_perfmodel perf_model, perf_model_omp;
starpu_data_handle_t handle;
starpu_task *task = NULL, *task_omp = NULL;
starpu_codelet cl, cl_omp;
starpu_conf conf;
@keisukefukuda
keisukefukuda / simple_partition.cpp
Created Apr 27, 2012
A simple program using StarPU's partitioning feature.
View simple_partition.cpp
// Simple program using StarPU's partitionning feature.
#include <cmath>
#include <sys/time.h>
#include <iostream>
#include <starpu.h>
starpu_perfmodel perf_model;
starpu_data_handle_t handle;
starpu_codelet cl;
starpu_conf conf;
@keisukefukuda
keisukefukuda / simple_multiformat.cu
Created Apr 29, 2012
An example of using StarPU's multiformat feature.
View simple_multiformat.cu
/*
Copyright (c) 2012, Keisuke Fukuda. All rights reserved.
License : new BSD license
# The Makefile looks like this:
NVCC=nvcc
CUDA_SDK=${HOME}/NVIDIA_GPU_Computing_SDK
CUTIL_INC=${CUDA_SDK}/C/common/inc
simple_multiformat: simple_multiformat.cu
@keisukefukuda
keisukefukuda / starpu_pheft.cu
Created Jul 4, 2012
StarPU's "pheft" behavior
View starpu_pheft.cu
#include <iostream>
#include <starpu.h>
struct starpu_codelet cl;
struct starpu_perfmodel perf;
starpu_data_handle_t handle;
void cpu_func(void *buffer[], void *arg) {
int N = STARPU_VECTOR_GET_NX(buffer[0]);
double *vec = (double*) STARPU_VECTOR_GET_PTR(buffer[0]);
@keisukefukuda
keisukefukuda / shibuya-el-position-paper.md
Created Sep 6, 2012 — forked from ainame/shibuya-el-position-paper.md
shibuya.elのポジションペーパーです。githubアカウントをお持ちの方はforkしてお使いください。
View shibuya-el-position-paper.md

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

Personal

  • 名前(任意)

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

    • @keisukefukuda / @freakda_
View maze.py
#!/usr/bin/python
import sys,os
START = 0
WALL = 1
GOAL = 2
OPEN = 3
class Maze(object):
@keisukefukuda
keisukefukuda / default_ctr.cpp
Created Sep 24, 2013
Compiler compatibility test
View default_ctr.cpp
#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 Oct 23, 2013
A minimal Intel TBB program
View tbb_minimal.cpp
// $ icpc -tbb tbb_minimal.cpp
#include <tbb/task_scheduler_init.h>
int main() {
tbb::task_scheduler_init init;
return 0;
}