Skip to content

Instantly share code, notes, and snippets.

View zchothia's full-sized avatar

Zaheer Chothia zchothia

View GitHub Profile
@zchothia
zchothia / 0001-Refs-185.-Add-missing-const-to-declarations-in-cblas.patch
Created January 20, 2013 20:57
First draft of patch for OpenBLAS #185 (add const to <cblas.h>).
From e4ef9352795f04865352d1ddcda7e6ac5371348b Mon Sep 17 00:00:00 2001
From: Zaheer Chothia <zaheer.chothia@gmail.com>
Date: Sun, 20 Jan 2013 21:53:52 +0100
Subject: [PATCH] Refs #185. Add missing 'const' to declarations in <cblas.h>.
Thanks to Dan Povey!
The 'const' modifications were done automatically using this scripts:
https://kaldi.svn.sourceforge.net/svnroot/kaldi/sandbox/dan/tools/for_openblas
---
Makefile | 2 +-
@zchothia
zchothia / avx_dispatch_example.c
Created July 9, 2012 21:13
AVX CPU dispatching - based on Agner Fog's C++ vector class library [http://www.agner.org/optimize/vectorclass.zip]
// AVX CPU dispatching - based on Agner Fog's C++ vector class library:
// http://www.agner.org/optimize/vectorclass.zip
#include <stdio.h>
#include <stdbool.h>
//------------------------------------------------------------------------------
//>> BEGIN <instrset.h>
// Detect 64 bit mode
@zchothia
zchothia / zc_gemm_magic5.c
Created June 19, 2012 20:31
OpenBLAS #83: simple GEMM test with magic(5)
// https://github.com/xianyi/OpenBLAS/issues/83
//
// gcc -O0 -g3 -ggdb3 -std=gnu99 -Iinstall\include zc_gemm_magic5.c -o zc_gemm_magic5 -l:install\lib\libopenblas.lib
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openblas/cblas.h>
@zchothia
zchothia / gist:2953434
Created June 19, 2012 10:30
OpenBLAS #83: build log (v0.1.1-40-g996dc6d)
This file has been truncated, but you can view the full file.
$ git clone https://github.com/xianyi/OpenBLAS.git openblas_sandybridge.git
$ git checkout -t origin/sandybridge
$ git describe --tags
v0.1.1-40-g996dc6d
$ make 2>&1 | tee build.log
ln -fs libopenblas_sandybridgep-r0.1.1.lib libopenblas.lib
ln: creating symbolic link `libopenblas.lib' to `libopenblas_sandybridgep-r0.1.1.lib': No such file or directory
make: [libs] Error 1 (ignored)
for d in interface driver/level2 driver/level3 driver/others kernel ; \
do if test -d $d; then \
@zchothia
zchothia / gist:2502173
Created April 26, 2012 19:14
openblas-0001-c_check-f_check-strip-quotes-from-detected-flags.patch
From ade1b8379ef0b2c24f67c216ce97a0666aee2aa8 Mon Sep 17 00:00:00 2001
From: Zaheer Chothia <zaheer.chothia@gmail.com>
Date: Thu, 26 Apr 2012 21:13:18 +0100
Subject: [PATCH] c_check/f_check: strip quotes from detected flags
---
c_check | 2 ++
f_check | 2 ++
2 files changed, 4 insertions(+)
@zchothia
zchothia / gist:2470335
Created April 23, 2012 11:33
[PATCH] cblas: compatibility for compilers without C99 complex number support (e.g. Visual Studio)
From 5820e897d2dff52255d6229cb8238e4f9d21ff89 Mon Sep 17 00:00:00 2001
From: Zaheer Chothia <zaheer.chothia@gmail.com>
Date: Sun, 22 Apr 2012 21:16:03 +0200
Subject: [PATCH] cblas: compatibility for compilers without C99 complex
number support (e.g. Visual Studio)
---
Makefile.install | 2 +-
cblas.h | 18 +++++++++---------
common.h | 22 ++++++++++++++++++++++
@zchothia
zchothia / gist:2469397
Created April 23, 2012 07:46
OpenBLAS Issue 90: output of cpuid command
$ cpuid
CPU 0:
vendor_id = "GenuineIntel"
version information (1/eax):
processor type = primary processor (0)
family = Intel Pentium Pro/II/III/Celeron/Core/Core 2/Atom, AMD Athlon/Duron, Cyrix M2, VIA C3 (6)
model = 0xf (15)
stepping id = 0x2 (2)
extended family = 0x0 (0)
extended model = 0x2 (2)
From 526b06097d730f7d951c99b7f738496a9b21cd65 Mon Sep 17 00:00:00 2001
From: Zaheer Chothia <zaheer.chothia@gmail.com>
Date: Sun, 22 Apr 2012 22:38:10 +0200
Subject: [PATCH] Refs #93. Upgraded LAPACK to 3.4.1 version.
---
Makefile | 82 ++---
Makefile.system | 2 +-
exports/gensymbol | 6 +-
patch.for_lapack-3.4.1 | 932 ++++++++++++++++++++++++++++++++++++++++++++++++
@zchothia
zchothia / openblas-r0.1.0-0002-Build-LAPACKE-C-Interface-to-LAPACK.patch
Created April 7, 2012 09:39
[PATCH] Build LAPACKE: C Interface to LAPACK.
From 26c35fd278ed7f0047f809316f55acdd5b9b207d Mon Sep 17 00:00:00 2001
From: Zaheer Chothia <zaheer.chothia@gmail.com>
Date: Sat, 7 Apr 2012 10:40:46 +0200
Subject: [PATCH] Build LAPACKE: C Interface to LAPACK.
---
Makefile | 93 ++-
Makefile.install | 7 +
Makefile.rule | 3 +
Makefile.system | 8 +
@zchothia
zchothia / openblas-r0.1.0-0001-Export-missing-and-new-LAPACK-3.4.0-functions-in-sha.patch
Created April 7, 2012 09:36
[PATCH] Export missing and new LAPACK 3.4.0 functions in shared library.
From ee65c01335b9c7348ebf4caa786b10200c685acf Mon Sep 17 00:00:00 2001
From: Zaheer Chothia <zaheer.chothia@gmail.com>
Date: Sat, 7 Apr 2012 10:39:09 +0200
Subject: [PATCH] Export missing and new LAPACK 3.4.0 functions in shared
library.
---
exports/gensymbol | 96 ++++++++++++++++++++++++++++++++++++----------------
1 files changed, 66 insertions(+), 30 deletions(-)