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 | |
# My GPU: Gefore710M | |
sudo apt-get remove nvidia* && sudo apt-get autoremove | |
sudo add-apt-repository -y ppa:xorg-edgers/ppa | |
sudo apt-get update | |
sudo apt-get install nvidia-340 | |
# Install CUDA 6.0 | |
sudo apt-get install nvidia-cuda-toolkit | |
# Install opencl |
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 | |
PORT=5555 | |
if [ $# -ne 0 ]; then | |
while [ $# != 0 ] | |
do | |
PORT=$1 | |
shift | |
done |
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
CMAKE_MINIMUM_REQUIRED( VERSION 2.8 ) | |
######################################################### | |
# Set project name | |
######################################################### | |
IF( NOT PROJECT_NAME ) | |
IF ( NOT "x$ENV{PROJECT_NAME}" STREQUAL "x" ) | |
SET( PROJECT_NAME $ENV{PROJECT_NAME} ) | |
ELSE() |
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/env python | |
__author__ = 'TzuTaLin' | |
import os | |
import sys | |
import shutil | |
from subprocess import call | |
import zipfile | |
import subprocess | |
def unzipFile(filename): |
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 <ctime> | |
class Timer | |
{ | |
public: | |
Timer() { clock_gettime(CLOCK_REALTIME, &beg_); } | |
double elapsed() { | |
clock_gettime(CLOCK_REALTIME, &end_); |
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
DIR=. | |
VERSION=12 | |
echo "Downloading headers for version ${VERSION}..." | |
mkdir -p "${DIR}/CL-${VERSION}" | |
cd "${DIR}/CL-${VERSION}" | |
wget https://raw.githubusercontent.com/KhronosGroup/OpenCL-Headers/opencl${VERSION}/opencl.h |
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/env sh | |
NDK_ROOT="${1:-${NDK_ROOT}}" | |
if [ ! -d "${WD}/android-cmake" ]; then | |
echo 'Cloning android-cmake' | |
git clone https://github.com/taka-no-me/android-cmake.git | |
fi | |
### ABI setup | |
#ANDROID_ABI=${ANDROID_ABI:-"armeabi-v7a with NEON"} |
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/bash | |
# | |
# This file is part of keytool-importkeypair. | |
# | |
# keytool-importkeypair is free software: you can redistribute it | |
# and/or modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation, either version 3 of | |
# the License, or (at your option) any later version. | |
# | |
# keytool-importkeypair is distributed in the hope that it will be |
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 | |
git remote add upstream $1 | |
git fetch upstream | |
git pull --rebase upstream master |
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/env python | |
__author__ = 'TzuTaLin' | |
# Copyright (c) 2016 Tzutalin | |
# Create by TzuTaLin <tzu.ta.lin@gmail.com> | |
import os | |
import platform | |
import subprocess |