Skip to content

Instantly share code, notes, and snippets.

View zhengyang92's full-sized avatar
🌚
traveling by telephone

Zhengyang Liu zhengyang92

🌚
traveling by telephone
View GitHub Profile
@zhengyang92
zhengyang92 / sitebackup
Created August 12, 2012 00:10
automatic website backup script using mysqldump & git
#!/usr/bin/env bash
d=`date +%Y%m%d`
mysqldump --all-databases -u root -pDBPASSWORD > /home/user/website/database-backup/bak-$d.sql
git --git-dir=/home/user/website/.git --work-tree=/home/user/website add .
git --git-dir=/home/user/website/.git --work-tree=/home/user/website commit -m "Backup on $d"
git --git-dir=/home/user/website/.git --work-tree=/home/user/website push origin master
;; style according the SHOGUN guide for developer and some source files
(c-add-style "shogun"
'("stroustrup"
(indent-tabs-mode . t)
(tab-width . 4)
(c-offsets-alist
(innamespace . -)
(arglist-intro . ++)
(arglist-cont-nonempty . ++)
Flat profile:
Each sample counts as 0.000123031 seconds.
% cumulative self self total
time seconds seconds calls s/call s/call name
29.57 65.38 65.38 675412146 0.00 0.00 longest_match
27.76 126.77 61.39 1 61.39 198.41 deflate
11.05 151.20 24.43 1073198323 0.00 0.00 ct_tally
9.68 172.60 21.40 .mcount
7.53 189.25 16.65 32768 0.00 0.00 updcrc
@zhengyang92
zhengyang92 / traceback.txt
Created September 6, 2016 10:46
traceback
(gdb) bt
#0 0x00000008033c3dac in __sys_sigsuspend () from /lib/libc.so.7
#1 0x00000008033b8891 in pause () from /lib/libc.so.7
#2 0x0000000802f3e3c5 in gdb (sig=6) at handler.c:4
#3 <signal handler called>
#4 0x000000080346901c in __sys_kill () from /lib/libc.so.7
#5 0x0000000803467c4b in abort () from /lib/libc.so.7
#6 0x000000080344b315 in __assert () from /lib/libc.so.7
#7 0x0000000002277b2e in __internal_register (Pool=0x0, allocaptr=0x8084e88c000 <LUmapBIG5>, NumBytes=109752, tag=1, SourceFilep=0x8084e8ec040 <sourcefile> "sc.register_globals", lineno=2)
at /usr/home/zhengyangl/safecode37/safecode/projects/safecode/runtime/BBRuntime/BaggyBoundsCheck.cpp:273
#------------------------------------------------------------------------------
# SPEC CPU2017 config file for: LLVM / Linux / AMD64
#------------------------------------------------------------------------------
#
# Usage: (1) Copy this to a new name
# cd $SPEC/config
# cp Example-x.cfg myname.cfg
# (2) Change items that are marked 'EDIT' (search for it)
#
# SPEC tested this config file with:
liuz@intel:~$ cat a
%0 = block 2
%1:i16 = var
%2:i1 = eq 0:i16, %1
%3:i16 = select %2, 40:i16, 47:i16
%4:i16 = addnw 2:i16, %3
%5:i16 = phi %0, %4, %4
%6:i16 = var
%7:i1 = slt %6, 0:i16
%8:i16 = subnsw 0:i16, %6

Keybase proof

I hereby claim:

  • I am zhengyangl on github.
  • I am unsat (https://keybase.io/unsat) on keybase.
  • I have a public key ASCLJIfzcBN8Cmjv4WAwzdW4BFrT8bBYw_RQFv5kB3xg_Ao

To claim this, I am signing this object:

Allgather ACCL ba46a1d Fri Jun 12 15:27:29 PDT 2020
Allgather ACCL ba46a1d Fri Jun 12 15:27:29 PDT 2020
Allgather ACCL ba46a1d Fri Jun 12 15:27:29 PDT 2020
Allgather ACCL ba46a1d Fri Jun 12 15:27:29 PDT 2020
# OSU MPI-CUDA Allgather Latency Test v5.6.2
# Size Avg Latency(us)
1 59.12
2 58.09
4 56.24
This file has been truncated, but you can view the full file.
Allgather ACCL ba46a1d Fri Jun 12 15:27:29 PDT 2020
Allgather ACCL ba46a1d Fri Jun 12 15:27:29 PDT 2020
Allgather ACCL ba46a1d Fri Jun 12 15:27:29 PDT 2020
Allgather ACCL ba46a1d Fri Jun 12 15:27:29 PDT 2020
# OSU MPI-CUDA Allgather Latency Test v5.6.2
# Size Avg Latency(us)
[gcrsandbox102:16164] Failed to register remote memory, rc=-1
[gcrsandbox102:16164] Failed to register remote memory, rc=-1
[gcrsandbox102:16165] Failed to register remote memory, rc=-1
#include<stdio.h>
#include<assert.h>
#include<stdlib.h>
#include<string.h>
#include<stdint.h>
#include "mpi.h"
#include "accl_util.h"
#include "cuda_runtime_api.h"
#define CUDACHECK(cmd) do { \
cudaError_t e = cmd; \