Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View tkelman's full-sized avatar

Tony Kelman tkelman

View GitHub Profile
$ gdb --args ../usr/bin/julia.exe -C pentium4 --build `cygpath -w ../usr/lib/julia/sys0` sysimg.jl
GNU gdb (GDB) 7.8
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
@tkelman
tkelman / msvc-fix.patch
Created October 17, 2015 03:26 — forked from anonymous/-
diff --git a/src/intrinsics.cpp b/src/intrinsics.cpp
index 29f8567..ce923a3 100644
--- a/src/intrinsics.cpp
+++ b/src/intrinsics.cpp
@@ -913,7 +913,7 @@ static jl_cgval_t emit_intrinsic(intrinsic f, jl_value_t **args, size_t nargs,
f = fptosi_auto;
unsigned expected_nargs = intrinsic_nargs[f];
if (expected_nargs && expected_nargs != nargs) {
- jl_errorf("intrinsic #%d %s: wrong number of arguments", f, jl_intrinsic_name((int)f));
+ jl_errorf("intrinsic #%d %s: wrong number of arguments", f, JL_I::jl_intrinsic_name((int)f));
/d/code/msys64/home/Tony/julia/deps/libuv/compile cl -nologo -MD -Z7 -Y- -TP -E
Hsc -DNDEBUG -D__NO_CTYPE_INLINE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC
_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ftls-model=global-dynamic -D_WIN32_WINNT=0
x0502 -D_GNU_SOURCE -I. -I/d/code/msys64/home/Tony/julia/src -I/d/code/msys64/h
ome/Tony/julia/src/flisp -I/d/code/msys64/home/Tony/julia/src/support -I/d/code/
msys64/home/Tony/julia/usr/include -I/d/code/msys64/home/Tony/julia/usr/include
-DLIBRARY_EXPORTS -I/d/code/msys64/home/Tony/julia/deps/valgrind -I/d/code/msys6
4/home/Tony/julia/usr/bin/../include "-DJL_SYSTEM_IMAGE_PATH=\"../lib/julia/sys.
dll\"" -c /d/code/msys64/home/Tony/julia/src/runtime_ccall.cpp -o runtime_ccall.
o
{"gitdate":"2015-09-23 19:55:48 -0500","exit_code":"1","name":"AffineTransforms","jlver":"0.4","gitsha":"373932ca8e7c2c1e42b34140e953b5c9bf8abfe4","status":"tests_fail","version":"0.1.0","url":"http://github.com/timholy/AffineTransforms.jl","log":">>> 'Pkg.add(\"AffineTransforms\")' log\nINFO: Cloning cache of AffineTransforms from git://github.com/timholy/AffineTransforms.jl.git\nINFO: Cloning cache of AxisAlgorithms from git://github.com/timholy/AxisAlgorithms.jl.git\nINFO: Cloning cache of Interpolations from git://github.com/tlycken/Interpolations.jl.git\nINFO: Cloning cache of Ratios from git://github.com/timholy/Ratios.jl.git\nINFO: Cloning cache of WoodburyMatrices from git://github.com/timholy/WoodburyMatrices.jl.git\nINFO: Installing AffineTransforms v0.1.0\nINFO: Installing AxisAlgorithms v0.1.3\nINFO: Installing Interpolations v0.3.1\nINFO: Installing Ratios v0.0.4\nINFO: Installing WoodburyMatrices v0.1.2\nINFO: Package database updated\n\n>>> 'Pkg.test(\"AffineTransforms\")' log\nJulia Version 0.
@tkelman
tkelman / lapack-doc-edits.patch
Last active October 17, 2015 02:56 — forked from anonymous/-
diff --git a/base/linalg/lapack.jl b/base/linalg/lapack.jl
index 5a57bfe..81161f8 100644
--- a/base/linalg/lapack.jl
+++ b/base/linalg/lapack.jl
@@ -692,7 +692,7 @@ for (tzrzf, ormrz, elty) in
end
"""
- ormrz!(side, trans, A, tau, C)
+ ormrz!(side, trans, A, tau, C) -> C
#!/bin/sh
set -e # stop on failure
# from libgit2 master at 723babd7124ae420f9afea65e25231d206ac1a20, or v0.23.0
echo '#include "git2.h"
void main() {
git_repository* repo_ptr = NULL;
char* repo_url = "https://github.com/JuliaLang/Example.jl";
char* repo_path = "Example.Bare";
git_clone_options clone_opts = GIT_CLONE_OPTIONS_INIT;
julia: gc.c:982: sweep_malloced_arrays: Assertion `ma->a->how == 2' failed.
signal (6): Aborted
__kernel_vsyscall at (unknown line)
gsignal at /lib/i386-linux-gnu/libc.so.6 (unknown line)
abort at /lib/i386-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0xb677ecb5)
unknown function (ip: 0xb677ed67)
gc_push_root at /home/travis/build/JuliaLang/julia/src/gc.c:1456
__pool_alloc at /home/travis/build/JuliaLang/julia/src/gc.c:1028
jl_set_typeof at /home/travis/build/JuliaLang/julia/src/julia.h:108
530.05s$ export JULIA_CPU_CORES=4 && cd /tmp/julia/share/julia/test && /tmp/julia/bin/julia --check-bounds=yes runtests.jl all && /tmp/julia/bin/julia --check-bounds=yes runtests.jl pkg
From worker 5: * linalg4 in 13.28 seconds
From worker 4: * linalg3 in 35.53 seconds
From worker 5: * linalg/lapack in 30.69 seconds
From worker 3: * linalg2 in 49.79 seconds
From worker 5: * linalg/tridiag in 10.49 seconds
From worker 3: * linalg/bidiag in 16.74 seconds
From worker 3: * linalg/dense in 0.09 seconds
From worker 5: * linalg/diagonal in 20.97 seconds
From worker 5: * linalg/givens in 2.67 seconds
Pkg.add("JuMP")
Pkg.add("CoinOptServices")
Pkg.add("AmplNLWriter")
using JuMP, AmplNLWriter
# Solve test problem 1 (Synthesis of processing system) in
# M. Duran & I.E. Grossmann, "An outer approximation algorithm for
# a class of mixed integer nonlinear programs", Mathematical
# Programming 36, pp. 307-339, 1986.
m = Model(solver = BonminNLSolver())
x_U = [2,2,1]
$ ./ecostester.exe
ECOS 2.0.0 - (C) embotech GmbH, Zurich Switzerland, 2012-15. Web: www.embotech.com/ECOS
It pcost dcost gap pres dres k/t mu step sigma IR | BT
0 -1.030e+02 -3.786e+03 +6e+04 8e-01 3e-01 1e+00 3e+01 --- --- 1 1 - | - -
1 -1.873e+02 -5.983e+02 +1e+04 7e-02 3e-02 5e-01 6e+00 0.8442 3e-02 1 2 2 | 0 0
2 -1.890e+02 -2.683e+02 +4e+03 1e-02 6e-03 4e-01 2e+00 0.8197 2e-01 2 3 3 | 0 0
3 -2.094e+02 -2.160e+02 +4e+02 1e-03 4e-04 3e-02 2e-01 0.9129 2e-02 2 2 2 | 0 0
4 -2.109e+02 -2.113e+02 +3e+01 7e-05 2e-05 6e-04 2e-02 0.9263 3e-03 2 3 3 | 0 0