Skip to content

Instantly share code, notes, and snippets.

Jordan Huang good5dog5

View GitHub Profile
@good5dog5
good5dog5 / fault.log
Created Aug 28, 2018
2018-08-28 cudaPointerTest 80 fault log
View fault.log
root@tegra-ubuntu:~/prj_qCUDA/qCUDA/test$ ./exe/cudaPointerTest 80
### __cudaRegisterFatBinary at line 184
FATBINC_MAGIC
magic= 466243b1
version= 1
data= 0x4016d0
filename_or_fatbins= (nil)
### qcu_cudaRegisterFatBinary at line 224
creating context for device 0
Allocated 0 Kbytes
View error.log
### qcu_cudaHostRegister at line 923
ptr: 2e000000, size: 4194304 byte = 4 MB, flag: 0 error is: 71
ptr: 32400000, size: 4194304 byte = 4 MB, flag: 0 error is: 71
ptr: 32c00000, size: 4194304 byte = 4 MB, flag: 0 error is: 71
ptr: 6f800000, size: 4194304 byte = 4 MB, flag: 0 error is: 71
ptr: 6fc00000, size: 4194304 byte = 4 MB, flag: 0 error is: 71
ptr: 70000000, size: 4194304 byte = 4 MB, flag: 0 error is: 71
ptr: 70400000, size: 4194304 byte = 4 MB, flag: 0 error is: 71
ptr: 70800000, size: 4194304 byte = 4 MB, flag: 0 error is: 71
View dmesg_bandwidthTest.out
[77313.646462] Unable to handle kernel paging request at virtual address ffffffbfc0000001
[77313.648840] pgd = ffffffc00859c000
[77313.649760] [ffffffbfc0000001] *pgd=0000000000000000, *pud=0000000000000000
[77313.651364] Internal error: Oops: 96000006 [#6] SMP
[77313.652464] Modules linked in: qcuda(OE) ofpart aes_ce_blk ablk_helper cryptd redboot aes_ce_cipher ghash_ce sha2_ce cmdlinepart sha1_ce cfi_cmdset_0001 cfi_probe cfi_util gen_probe physmap_of map_funcs chipreg mtd uio_pdrv_genirq rtc_pl031 uio virtio_scsi ne2k_pci 8390
[77313.657938] CPU: 1 PID: 12884 Comm: bandwidthTest Tainted: G D W OE 4.2.0-18-generic #22~14.04.1-Ubuntu
[77313.660188] Hardware name: linux,dummy-virt (DT)
[77313.661205] task: ffffffc0b8a31980 ti: ffffffc008f74000 task.ti: ffffffc008f74000
[77313.662890] PC is at __copy_to_user+0xc/0x60
[77313.663834] LR is at gpa_to_user+0x184/0x190 [qcuda]
View rclone_install.sh
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
unzip rclone-current-linux-amd64.zip
cd rclone-*-linux-amd64/
@good5dog5
good5dog5 / Conda_install.sh
Last active Aug 6, 2018
Conda_install script
View Conda_install.sh
#!/usr/bin/env bash
# Jordan huang<good5dog5@gmail.com>
set -o errexit
set -o pipefail
set -o nounset
wget http://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
bash Anaconda3-5.0.1-Linux-x86_64.sh
conda update conda
View Jsystem_bootstrap.sh
#!/usr/bin/env bash
# Jordan huang<good5dog5@gmail.com>
set -o errexit
set -o pipefail
set -o nounset
# For yadm
sudo apt-get update -y
sudo apt-get install -y software-properties-common
@good5dog5
good5dog5 / sample.py
Last active Aug 6, 2018
pandas_snippets
View sample.py
def testAnswer_to_df(json_str):
row = []
for i in range(len(data)):
member_id = data[i]['memberid']
if 'listen_score' in data[i]:
score_ary = data[i]['listen_score']['score_ary'] if 'score_ary' in data[i]['listen_score'] else np.nan
avg = data[i]['listen_score']['average'] if 'average' in data[i]['listen_score'] else np.nan
answer_ary = data[i]['listen_score']['answer_ary'] if 'answer_ary' in data[i]['listen_score'] else np.nan
else:
score_ary = np.nan
View error.log
scons: Reading SConscript files ...
Warning: This combination of gcc and swig have known incompatibilities.
If you encounter build problems, please update swig to 3.0 or later.
Checking for C header file Python.h... (cached) yes
Checking for C library pthread... (cached) yes
Checking for C library dl... (cached) yes
Checking for C library util... (cached) yes
Checking for C library m... (cached) yes
Checking for C library python2.7... (cached) yes
Checking for accept(0,0,0) in C++ library None... (cached) yes
View log2grasp.py
#!/usr/bin/env python
# Copyright (C) 2013 National Cheng Kung University, Taiwan
# All rights reserved.
# Configure wether to trace these feature
# Warning : Too many contents may freeze Grasp
TRACE_QUEUE = True
TRACE_MUTEX = True
TRACE_BINARY_SEMAPHORE = False
View pip3-error-msg
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
load_entry_point('pip==1.5.4', 'console_scripts', 'pip3')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2362, in load_entry_point
raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'pip3') not found
Error in sys.excepthook:
Traceback (most recent call last):
You can’t perform that action at this time.