Skip to content

Instantly share code, notes, and snippets.

View jashwanth9's full-sized avatar
:atom:

Jash Madem jashwanth9

:atom:
View GitHub Profile
@jashwanth9
jashwanth9 / gist:2560782
Created April 30, 2012 18:26
Error while testing Rosella
winxed setup.winxed test
PackFile_Header_validate: This is not a valid Parrot bytecode file.
current instr.: '_block1117' pc 295 ((file unknown):146) (t/harness:2)
called from Sub '' pc 275 ((file unknown):132) (t/harness:1)
@jashwanth9
jashwanth9 / output
Created June 15, 2012 17:41
output
jashwanth@jashwanth-XPS-L501X:~/Desktop/GSoC-Parrot/start/parrot-lapack$ winxed setup.winxed build
"/home/jashwanth/parrot/bin/winxed" -c -o./src/LAPACK/Double.pir ./src/LAPACK/Double.winxed
WARNING: class NumMatrix2D not found at compile time near 'NumMatrix2D' at ./src/LAPACK/Double.winxed line 11
WARNING: class NumMatrix2D not found at compile time near 'NumMatrix2D' at ./src/LAPACK/Double.winxed line 16
"/home/jashwanth/parrot/bin/parrot" -o ./src/LAPACK/Common.pbc ./src/LAPACK/Common.pir
"/home/jashwanth/parrot/bin/parrot" -o ./src/LAPACK/Double.pbc ./src/LAPACK/Double.pir
jashwanth@jashwanth-XPS-L501X:~/Desktop/GSoC-Parrot/start/parrot-lapack$ winxed setup.winxed test
elements() not implemented in class 'Rosella;Query;Iterable;Map'
current instr.: 'parrot;Rosella;Query;Iterable;Append;has_more' pc 8387 (rosella/query.pir:4388) (rosella/query.winxed:2518)
called from Sub 'parrot;Rosella;Query;Iterable;to_array' pc 5074 (rosella/query.pir:2725) (rosella/query.winxed:1814)
const int PRINT_DEBUG_STUFF = 0;
function main[main](var args)
{
<<<<<<< HEAD
var pla = loadlib("linalg_group");
var lapack = loadlib('liblapack.so');
if (lapack == null || !lapack)
die("Cannot find liblapack. Search for the correct paths");
say("In Winxed Main!\n");
@jashwanth9
jashwanth9 / mat.winxed
Created June 15, 2012 17:01
the mat file
const int PRINT_DEBUG_STUFF = 0;
function main[main](var args)
{
var pla = loadlib("linalg_group");
var lapack = loadlib('liblapack.so');
if (lapack == null || !lapack)
die("Cannot find liblapack. Search for the correct paths");
say("In Winxed Main!\n");
say("Matrix A:");
@jashwanth9
jashwanth9 / testfirst
Created June 15, 2012 18:44
firsttest
$load "rosella/test.pbc";
//$load "./src/mat.pbc";
class MyTests {
function first_test() {
var pla = loadlib("linalg_group");
var identity_matrix=new 'NumMatrix2D';
identity_matrix.initialize_from_args(1,1,
$load "rosella/test.pbc";
$load "./src/Double.pbc";
class Test_dgetrf{
function dgetrf_test(){
var pla = loadlib("linalg_group");
var lapack = loadlib('liblapack.so');
var A = new 'NumMatrix2D';
A.initialize_from_args(3, 3,
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 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-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/jashwanth/parrot/bin/winxed...done.
printing ipiv:
[ 0, 0, 0 ]
In Winxed Main!
Matrix A:
11 2 3
4 5 6
7 1 2
3
WARNING: class NumMatrix2D not found at compile time near 'NumMatrix2D' at LUdecomposition.winxed line 116
WARNING: class NumMatrix2D not found at compile time near 'NumMatrix2D' at LUdecomposition.winxed line 117
WARNING: class NumMatrix2D not found at compile time near 'NumMatrix2D' at LUdecomposition.winxed line 118
Successful
U=
2 -1 1
0 3 -3
0 0 2
In Winxed Main!
Given Matrix:
2 -1 1
4 1 -1
1 1 1
successful result
-0.5 0 1
3.37987164504112e-260 3.37999569705406e-260 1.71965088003014e-312
1.5 -1 1