Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
NMatrix instructions
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eric MacAdie  
View profile  
 More options Jul 31 2012, 10:03 pm
From: Eric MacAdie <emaca...@gmail.com>
Date: Tue, 31 Jul 2012 21:03:55 -0500
Local: Tues, Jul 31 2012 10:03 pm
Subject: NMatrix instructions

I got NMatrix installed on my machine. I sort of followed the instructions
on SciRuby. But instead of going to the SciPy site and installing the ATLAS
from source I used the Ubuntu packages. I also had to make a couple of
symlinks. Personally I prefer using packages over compiling and installing
libraries myself.

I will write something up later and post it here and on my website.

- Eric MacAdie


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Carrera  
View profile  
 More options Aug 1 2012, 2:49 am
From: "Daniel Carrera" <dcarr...@hush.com>
Date: Wed, 01 Aug 2012 08:49:48 +0200
Local: Wed, Aug 1 2012 2:49 am
Subject: Re: NMatrix instructions

The reason for compiling ATLAS is to get a set of BLAS and LAPACK that
is optimized for your system. That is something that an Ubuntu package
cannot do. ATLAS will probe your CPU, figure out what features it has,
and edit the compile system so that you get BLAS designed to squeeze
every ounce out of architecture. In contrast, pre-compiled packages
from Ubuntu have to assume nothing about your CPU and only use the
features that are common to all CPUs, including 10 year-old CPUs.

Basically, for simple calculations it just doesn't matter, and if your
work doesn't involve linear algebra then the BLAS don't matter either.
But if you want to invert large matrices, compiling ATLAS makes a
world of a difference. Alternatively, you can use the MKL from Intel
which contain BLAS optimized by Intel for its own CPUs, so they are
really good. Because the BLAS are such an important core of a lot of
scientific work, every CPU manufacturer will give you BLAS that are
optimized for its CPUs.
Cheers,Daniel.

On Wednesday, August 01, 2012 at 4:04 AM, Eric MacAdie  wrote:I got

NMatrix installed on my machine. I sort of followed the instructions
on SciRuby. But instead of going to the SciPy site and installing the
ATLAS from source I used the Ubuntu packages. I also had to make a
couple of symlinks. Personally I prefer using packages over compiling
and installing libraries myself.  
I will write something up later and post it here and on my website.

- Eric MacAdie


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Prince  
View profile  
 More options Aug 1 2012, 11:08 am
From: John Prince <jtpri...@gmail.com>
Date: Wed, 1 Aug 2012 09:08:56 -0600
Local: Wed, Aug 1 2012 11:08 am
Subject: Re: NMatrix instructions

Eric, I'm really interested in the steps you took (I've not been successful
so far, but it was very early on when I last tried).

That's also a great point Daniel.  Even though the project is under active
development, we ought to have a wiki page with step by step instructions on
installation (both compiling and with packages since both are highly
useful).  Then, the README could just point to the wiki page...  This
should be done sooner rather than later because folks can't really
contribute until they can compile.

Of course, I'm happy to post to the wiki the instructions once I actually
get it to work.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric MacAdie  
View profile  
 More options Aug 1 2012, 11:21 am
From: Eric MacAdie <emaca...@gmail.com>
Date: Wed, 1 Aug 2012 10:21:43 -0500
Local: Wed, Aug 1 2012 11:21 am
Subject: Re: NMatrix instructions

I put it on my blog:

http://www.MacAdie.net/2012/07/31/installing-nmatrix-from-sciruby/

I am running on Ubuntu.

The summary is:
I installed a couple of packages first: libatlas-dev and libatlas3gf-base.
Then I ran these two commands:

ln -s /usr/lib/libgslcblas.so.0.0.0 /usr/lib/libcblas.so
ln -s /usr/lib/atlas-base/libatlas.so.3gf.0 /usr/lib/libatlas.so

That seemed to do the trick.  Running "gem install nmatrix" worked after
that.

- Eric MacAdie


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Prince  
View profile  
 More options Aug 1 2012, 11:45 am
From: John Prince <jtpri...@gmail.com>
Date: Wed, 1 Aug 2012 09:45:55 -0600
Local: Wed, Aug 1 2012 11:45 am
Subject: Re: NMatrix instructions
 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carlos Agarie  
View profile  
 More options Aug 2 2012, 1:19 am
From: Carlos Agarie <carlos.aga...@gmail.com>
Date: Wed, 1 Aug 2012 22:19:32 -0700 (PDT)
Local: Thurs, Aug 2 2012 1:19 am
Subject: Re: NMatrix instructions

I'm trying to compile NMatrix here (OS X 10.7.4). I downloaded ATLAS, but
there's a problem in the make install step... First of all, the error I get
from nmatrix compilation:

(...)

> checking for cblas_dgemm() in -lcblas... yes
> checking for ATL_dgemmNN() in -latlas... no
> checking for cblas.h in /usr/local/include,/usr/local/atlas/include... no
> checking for main() in -lf2c... no
> checking for f2c.h... no
> creating nmatrix_config.h
> creating Makefile
> (...)

It can't find cblas.h and I thought it'd be a good idea to install atlas
and lapack from source. (wtf was I thinking?)

So I followed this blog post:

http://okomestudio.net/biboroku/?p=722

The make check step is failing with this error:

ar r /Users/carlosagarie/Downloads/tmp/ATLAS/build/lib/libatlas.a

> ATL_sMBJBmm.o ATL_sIBNBmm.o ATL_sIBJBmm.o ATL_sgemm.o ATL_sGetNB.o
> ATL_sGetNCNB.o ATL_sgemmNN.o ATL_sgemmNT.o ATL_sgemmTN.o ATL_sgemmTT.o
> ATL_sNCmmIJK.o ATL_sNCmmJIK.o ATL_sNCmmIJK_c.o ATL_sNCmmJIK_c.o
> ATL_saliased_gemm.o ATL_sAgemmNN.o ATL_sAgemmNT.o ATL_sAgemmTN.o
> ATL_sAgemmTT.o ATL_smmJIK.o ATL_smmIJK.o ATL_smmJKI.o ATL_smmK.o
> ATL_smmBPP.o ATL_smmJITcp.o ATL_scol2blk_aX.o ATL_srow2blkT_aX.o
> ATL_scol2blk_a1.o ATL_srow2blkT_a1.o ATL_sputblk_bX.o ATL_sputblk_b1.o
> ATL_sputblk_bn1.o ATL_sputblk_b0.o

ar: fatal error in /usr/bin/ranlib

It's very late here and I have some stuff to do tomorrow, but I'd like to
hear how you all installed atlas/lapack in your systems. Reading Eric's
blog, I think that I need to find and symlink the current install from OS X
so nmatrix will find it. But it'd be great to *know* how to compile and
everything - more information for the wiki etc.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Woods  
View profile  
 More options Aug 6 2012, 2:27 pm
From: John Woods <john.o.wo...@gmail.com>
Date: Mon, 6 Aug 2012 13:27:21 -0500
Local: Mon, Aug 6 2012 2:27 pm
Subject: Re: NMatrix instructions

Hey Carlos,

I see that no one has replied yet.

Sometimes it's not problematic that cblas.h isn't found, particularly if
you *have* cblas.h. It may be a problem with extconf.rb.

But I've never seen this particular error. Were you able to find it on
Google?

John

On Thu, Aug 2, 2012 at 12:19 AM, Carlos Agarie <carlos.aga...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carlos Agarie  
View profile  
 More options Aug 6 2012, 8:22 pm
From: Carlos Agarie <carlos.aga...@gmail.com>
Date: Mon, 6 Aug 2012 21:22:56 -0300
Local: Mon, Aug 6 2012 8:22 pm
Subject: Re: NMatrix instructions

I edited it directly on cblas.c and nmatrix.inc.h files, so the #include
<cblas.h> points to OS X's specific installation. I've read extconf.rb (the
first time I read one!) and it appears like this type of installation issue
can be solved adding the directories there.

Don't worry, I've already solved it - to test Daniel's code and my rand()
method to create the pull request I sent you. I'll try to replicate this
error and try to solve it some other ways when I have enough time. All the
results will be reported here :)

2012/8/6 John Woods <john.o.wo...@gmail.com>

--
Carlos Agarie
Control engineering student
Polytechnic School
University of São Paulo

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric MacAdie  
View profile  
 More options Aug 15 2012, 10:01 am
From: Eric MacAdie <emaca...@gmail.com>
Date: Wed, 15 Aug 2012 09:01:03 -0500
Local: Wed, Aug 15 2012 10:01 am
Subject: Re: NMatrix instructions

I may try compiling from source, and post instructions on that if I am
successful.

- Eric MacAdie

On Mon, Aug 6, 2012 at 7:22 PM, Carlos Agarie <carlos.aga...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »