Skip to content

Instantly share code, notes, and snippets.

View Jokeren's full-sized avatar
💻
Work

Keren Zhou Jokeren

💻
Work
  • George Mason University
  • Fairfax
  • 23:04 (UTC -12:00)
View GitHub Profile
@Jokeren
Jokeren / sanitizer.md
Last active July 9, 2019 03:19
HPCToolkit Sanitizer spack install

Install spack

git clone https://github.com/spack/spack.git
export SPACK_ROOT=/path/to/spack
export PATH=${SPACK_ROOT}/bin:${PATH}
source ${SPACK_ROOT}/share/spack/setup-env.sh

Clone HPCToolkit

/*
* 思路:
* 1. 左边的右括号不能超过当前位置的一半长度
* 2. 右边的左括号不能超过当前位置的一半长度
*/
#define _USE_MATH_DEFINES
#ifdef ONLINE_JUDGE
#define FINPUT(file) 0
#define FOUTPUT(file) 0
#include <iostream>;
#include <string>;
#include <chrono>;
#include <thread>;
#include <cstdlib>;
const int width = 158; // Width of terminal window
const int flipsPerLine = 5; // No. of columns changed per line
const int millisecondsOfSleep = 50; // Delay between lines in millisecond
int main()
{