This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bisect import bisect_left | |
from subprocess import Popen, PIPE | |
from time import sleep | |
import numpy as np | |
def get_temperature(gpu=0): | |
lines = Popen(["aticonfig", "--adapter=%d" % gpu, "--od-gettemperature"], | |
stdout=PIPE).communicate()[0].split("\n") | |
lines = [xx.strip() for xx in lines if len(xx.strip()) > 0] | |
# Adapter 0 - AMD Radeon HD 6800 Series |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: master.pdf | |
clean: | |
rm -f *.pdf *.log *.aux *.blg *.bbl *.lof *.lot *.out *.toc | |
rm -f *_lores.tex | |
rm -f images/*/downsampled/* | |
master.pdf: master.tex PAPER_lores.tex SIML.tex GPUCG_lores.tex SCISSORS_lores.tex \ | |
kernelnoise_lores.tex kernelnoise_chapter.tex nips_abstract.tex nips_appendices.tex\ | |
bibliography.bib introduction.tex master-macros.sty conclusion.tex \ | |
bounds.tex realtime_lores.tex acknowledgement.tex abstract.tex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kivy | |
kivy.require('1.6.0') # replace with your current kivy version ! | |
from kivy.app import App | |
from kivy.uix.label import Label | |
class MyApp(App): | |
def build(self): | |
return Label(text='Hello World', markup=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import multiprocessing | |
multiprocessing.log_to_stderr().setLevel(logging.DEBUG) | |
import kivy | |
from kivy.app import App | |
from kivy.uix.button import Button | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
''' | |
Created on Apr 17, 2013 | |
@author: ntilmans | |
revised by @ihaque | |
''' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kivy | |
kivy.require('1.6.0') | |
from kivy.app import App | |
from kivy.uix.filechooser import FileChooserIconView | |
class DemoApp(App): | |
def build(self): | |
return FileChooserIconView() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tables | |
import numpy as np | |
h5 = tables.openFile('test.h5', 'w') | |
table = h5.createTable( | |
h5.root, 'table', | |
description=np.dtype([('col', 'S16')])) | |
table.append([('S_%05d' % i,) for i in xrange(10)]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.globl _msd_axis_major | |
.align 4, 0x90 | |
_msd_axis_major: ## @msd_axis_major | |
.cfi_startproc | |
## BB#0: | |
pushq %rbp | |
Ltmp43: | |
.cfi_def_cfa_offset 16 | |
Ltmp44: | |
.cfi_offset %rbp, -16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5.659961250000000000e+05 3.724742578125000000e+04 3.637817968750000000e+04 4.413761718750000000e+04 3.397246093750000000e+04 3.453220703125000000e+04 1.498615332031250000e+04 3.384765625000000000e+04 3.595958593750000000e+04 3.050485351562500000e+04 3.297774609375000000e+04 3.719416406250000000e+04 4.236740625000000000e+04 3.620104296875000000e+04 2.128593554687500000e+04 3.408514843750000000e+04 3.712941796875000000e+04 4.125301953125000000e+04 3.623164453125000000e+04 3.005377929687500000e+04 3.264214843750000000e+04 2.887791796875000000e+04 4.038496875000000000e+04 2.608633789062500000e+04 3.608921484375000000e+04 3.599268750000000000e+04 3.745137500000000000e+04 2.524565234375000000e+04 1.657358789062500000e+04 3.332289843750000000e+04 2.248200781250000000e+04 2.927972460937500000e+04 3.407544531250000000e+04 3.738280468750000000e+04 3.035079882812500000e+04 1.650042578125000000e+04 4.307830859375000000e+04 4.003902734375000000e+04 2.278440820312500000e+04 2.907345117187500000e+04 3.380399609375000000e+04 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Eigenvalues OK for matrix of size 559? (Remove head) True | |
Eigenvalues OK for matrix of size 559? (Remove tail) True | |
Eigenvalues OK for matrix of size 560? False | |
Numpy configuration | |
version: 1.10.2 | |
lapack_opt_info: | |
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] | |
extra_compile_args = ['-msse3'] | |
define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] |
OlderNewer