Skip to content

Instantly share code, notes, and snippets.

View carlkl's full-sized avatar

carlkl carlkl

View GitHub Profile
@carlkl
carlkl / Makefile
Created December 12, 2013 07:48
patched lapacke/src Makefile (lapack-3.5.0) for OpenBLAS
##############################################################################
# Copyright (c) 2010, Intel Corp.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
@carlkl
carlkl / gist:c528505af31ac32720b0
Created July 31, 2014 00:06
numpy-1.9.0b2.win-amd64-py2.7.exe mingw-w64 openblas test
https://bitbucket.org/carlkl/mingw-w64-for-python/downloads/numpy-1.9.0b2.win-amd64-py2.7.exe
======================================================================
ERROR: test_format.test_large_file_support
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\devel\py27\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\devel\py27\lib\site-packages\numpy\lib\tests\test_format.py", line 690, in test_large_file_support
f = open(tf.name, "wb")
@carlkl
carlkl / gist:43182c7c5e0049db7b4e
Created July 31, 2014 00:07
numpy-1.9.0b2.win32-py2.7.exe mingw-w64 openblas test
https://bitbucket.org/carlkl/mingw-w64-for-python/downloads/numpy-1.9.0b2.win32-py2.7.exe
======================================================================
FAIL: test_any_ninf (test_umath.TestArctan2SpecialValues)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\devel32\py27\lib\site-packages\numpy\core\tests\test_umath.py", line 452, in test_any_ninf
assert_almost_equal(ncu.arctan2(1, np.NINF), np.pi)
File "d:\devel32\py27\lib\site-packages\numpy\testing\utils.py", line 490, in assert_almost_equal
raise AssertionError(_build_err_msg())
@carlkl
carlkl / gist:b05dc6055fd42eba8cc7
Created January 21, 2015 20:56
python-2.7.9_numpy-1.9.1_scipy-0.15.1
======================================================================
FAIL: test_syr_her (test_blas.TestFBLAS2Simple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\tools\wp_279_amd\python-2.7.9.amd64\lib\site-packages\scipy\linalg\tests\test_blas.py", line 316, in test_syr_her
resz_reverse, rtol=rtol)
File "D:\tools\wp_279_amd\python-2.7.9.amd64\lib\site-packages\numpy\testing\utils.py", line 1297, in assert_allclose
verbose=verbose, header=header)
File "D:\tools\wp_279_amd\python-2.7.9.amd64\lib\site-packages\numpy\testing\utils.py", line 665, in assert_array_compare
raise AssertionError(msg)
@carlkl
carlkl / py27win32_numpy-1.10.0rc1_atlas
Created September 26, 2015 17:48
py27win32_numpy-1.10.0rc1_atlas.txt
======================================================================
ERROR: test_umath.TestComplexFunctions.test_branch_cuts_complex64(<ufunc 'arcsin'>, [-2, 2], [1j, 1j], 1, -1, True, <type 'numpy.complex64'>)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\devel\py\python-2.7.10\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\devel\py\python-2.7.10\lib\site-packages\numpy\core\tests\test_umath.py", line 1736, in _check_branch_cut
y0 = f(x0)
RuntimeWarning: invalid value encountered in arcsin
@carlkl
carlkl / py27win32_numpy-1.11.0.dev0_mingwpy
Created September 26, 2015 17:49
py27win32_numpy-1.11.0.dev0_mingwpy
======================================================================
ERROR: test_fromfile (test_longdouble.FileBased)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\devel\py\python-2.7.10\lib\site-packages\numpy\testing\decorators.py", line 216, in knownfailer
return f(*args, **kwargs)
File "D:\devel\py\python-2.7.10\lib\site-packages\numpy\core\tests\test_longdouble.py", line 136, in test_fromfile
F = open(self.f.name, "rt")
IOError: [Errno 13] Permission denied: 'c:\\users\\testing\\appdata\\local\\temp\\tmpj5pmbp'
*asm:
%{m32:--32} %{m64:--64}
*asm_debug:
%{!g0:%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}} %{fdebug-prefix-map=*:--debug-prefix-map %*}
*asm_final:
%{gsplit-dwarf:
objcopy --extract-dwo %{c:%{o*:%*}%{!o*:%b%O}}%{!c:%U%O} %{c:%{o*:%:replace-extension(%{o*:%*} .dwo)}%{!o*:%b.dwo}}%{!c:%b.dwo}
objcopy --strip-dwo %{c:%{o*:%*}%{!o*:%b%O}}%{!c:%U%O} }
@carlkl
carlkl / libtfr_test.py
Created March 15, 2016 11:28
libtfr example for the new libtfr API (develop branch)
import sys
import matplotlib.pyplot as plt
import numpy as np
import libtfr
def fmsin(N, fnormin=0.05, fnormax=0.45, period=None, t0=None, fnorm0=0.25, pm1=1):
"""
Signal with sinusoidal frequency modulation.
generates a frequency modulation with a sinusoidal frequency.
@carlkl
carlkl / python-3.4_scipy_test.log
Created March 20, 2016 20:23
scipy-0.1.7.0 based on numpy-1.10.4 (Atlas MSVC) - test error with python 32 bit
.................................................................................................................................................................................S...................................................................................K...................................................................................................................................................................................................................................................................................................................K.............................................................................................................................................................K..K.....................................................................................................................................................................................................................................................................................................
def _init_numpy_mkl():
# Numpy+MKL on Windows only
import os
import ctypes
if os.name != 'nt':
return
# disable Intel Fortran default console event handler
env = 'FOR_DISABLE_CONSOLE_CTRL_HANDLER'
if env not in os.environ:
os.environ[env] = '1'