Skip to content

Instantly share code, notes, and snippets.

View cartoonist's full-sized avatar

Ali Ghaffaari cartoonist

View GitHub Profile
DEVICES := "Cuda,OpenMP"
CUDA_ARCH := "sm_75"
EXE_NAME := "so-76943386"
SRC := $(wildcard *.cpp)
all: build
ifneq (,$(findstring Cuda,$(DEVICES)))
@cartoonist
cartoonist / ref.tex
Last active September 3, 2017 15:22
Reference colouring
\makeatletter
\let\svbibitem\@bibitem
\def\@bibitem#1{%
\if\relax\csname#1color\endcsname\relax\refcolor{#1}{black}\else%
\refcolor{#1}{\csname#1color\endcsname}\fi%
\if\relax\csname#1color\endcsname\relax\color{black}\else%
\color{\csname#1color\endcsname}\fi
\svbibitem{#1}}
\makeatother
@cartoonist
cartoonist / gcsa2.pc.in
Last active August 17, 2017 01:31
GCSA2 installation script
prefix=${TMP_PREFIX}
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
bindir=${prefix}/bin
Name: gcsa2
Description: GCSA2: BWT-based index for graphs
Version: 1.0.0
URL: https://github.com/jltsiren/gcsa2