-
名前(任意)
- Keisuke Fukuda (福田圭祐)
-
Twitter or Facebookのアカウント or HN等
-
@keisukefukuda / @freakda_
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Titech Portal Auto Login | |
// @namespace http://www.titech.ac.jp/ | |
// @id [email protected] | |
// @description 東工大ポータルに自動的にログインします | |
// @author NAKASHIMA, Makoto <[email protected]> | |
// @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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
IF=eth0 | |
iptables -F | |
iptables -t nat -F | |
iptables -X | |
iptables -Z | |
# drop all packets by default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys,os | |
START = 0 | |
WALL = 1 | |
GOAL = 2 | |
OPEN = 3 | |
class Maze(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <map> | |
#include <string> | |
using namespace std; | |
// This is OK. | |
void func(map<string,string> a=map<string,string>()) { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $ icpc -tbb tbb_minimal.cpp | |
#include <tbb/task_scheduler_init.h> | |
int main() { | |
tbb::task_scheduler_init init; | |
return 0; | |
} |
OlderNewer