Skip to content

Instantly share code, notes, and snippets.

View yylin1's full-sized avatar
:octocat:
Focusing

Yi-Yang Lin yylin1

:octocat:
Focusing
View GitHub Profile
@yylin1
yylin1 / Markdium-Diff.diff
Created May 16, 2021 05:22
Markdium-Hello Markdium!
public class Hello1
{
public static void Main()
{
- System.Console.WriteLine("Hello, World!");
+ System.Console.WriteLine("Rock all night long!");
}
}
@yylin1
yylin1 / Markdium-TypeScript.ts
Created May 16, 2021 05:22
Markdium-Hello Markdium!
let foo = 'bar'
/**
Don't worry about the code block, it will be saved as a gist with right language format, and auto embed to your post.
**/
@yylin1
yylin1 / .bashrc
Last active April 11, 2023 14:02 — forked from shibacow/.bashrc
HPL-GPU execute
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
export LD_LIBRARY_PATH=/opt/intel/mkl/lib/intel64:/opt/intel/compilers_and_libraries/linux/lib/intel64:/home/ubuntu/hpl/src/cuda:/opt/openmpi/lib
export PATH=/opt/openmpi/bin:$PATH
$ /l_mkl_2019.0.117# sh ./install.sh
--------------------------------------------------------------------------------
Initializing, please wait...
--------------------------------------------------------------------------------
Welcome
--------------------------------------------------------------------------------
Welcome to the Intel(R) Math Kernel Library 2019 for Linux*
--------------------------------------------------------------------------------
ARG runtime="nvidia"
FROM nvidia/cuda:9.0-runtime-ubuntu16.04
# NVidia required
ENV NVIDIA_VISIBLE_DEVICES=0
ENV EMREL="https://github.com/ethereum-mining/ethminer/releases/download/v0.14.0/ethminer-0.14.0-Linux.tar.gz"
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
gdisk - GPT fdisk text-mode partitioning tool
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: eth-gpu
spec:
template:
metadata:
labels:
app: eth-gpu
spec: