[Linux-c6x-dev] Compiling BLAS Reference Library for C64x+ architecture
Jacquiot, Aurelien
a-jacquiot at ti.com
Wed May 30 09:18:58 UTC 2012
Hi Marc,
In addition to Bill's remarks, there is a C version of BLAS called CBLAS (http://www.netlib.org/blas/blast-forum/cblas.tgz) that can be cross-compiled with GCC for C6x.
If you want to use a special BLAS version or a modified one which is not available as CBLAS, you can use F2C (http://www.boutell.com/lsm/lsmbyid.cgi/000789) which allows to easily transform Fortran to C code. You have to use the native x86 version of F2C for transforming your BLAS library in Fortran into a C version of BLAS then compile it with GCC for C6x. Note that in F2C, there is a version of the libf77 than can be easily cross-compiled for C6x if needed.
Regards,
Aurelien
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920
-----Original Message-----
From: linux-c6x-dev-bounces at linux-c6x.org [mailto:linux-c6x-dev-bounces at linux-c6x.org] On Behalf Of Mills, William
Sent: Tuesday, May 29, 2012 10:25 PM
To: Marc Bronson
Cc: linux-c6x-dev at linux-c6x.org
Subject: Re: [Linux-c6x-dev] Compiling BLAS Reference Library for C64x+ architecture
On 05/25/2012 08:41 PM, Marc Bronson wrote:
> Hi,
>
> I want to compile for the TMS320C64x+ DSP on the Beagleboard a reference
> BLAS library (specifically the on listed at step 5A of this page:
> http://www.vesperix.com/arm/atlas-arm/source/index.html). The source is all
> in Fortran, and I am trying to figure out how to use the correct option
> with the gFortan (or some other) compiler for this architecture. Any help
> and advice related to what is the correct option and how to use it would be
> greatly appreciated.
Hi, Marc. Thats an interesting project.
Unfortunately I don't think we have a lot of specific help for you at
the moment.
As part of this project, CodeSourcery/Mentor Graphics did the toolchain
work. The C64x+ ISA support has been included upstream for GCC,
binutils, and gdb. However, our project at linux-c6x.org is still use
the earlier CodeSourcery/Mentor Graphics code base. That version does
not enable Fortran.
In the next several months we plan to build and regression test our
project with the upstream versions of the toolchain. There has been
some talk about turning on Fortran language support as a "what if" at
that time. A preliminary test has shown that it "mostly works". We are
still trying to decide how useful that is and where the gaps really are.
Also, the beagleboard is not a platform supported by linux-c6x.org
today. I hope we can add that support but we would probably target
doing so when we resync to the upstream kernel work going on.
I don't know your expertise. If your up for building your own toolchain
you could start with the upstream sources or the source archive for the
toolchain we currently use. I don't think that would be a path of the
faint of heart and I doubt we could help much until we had done the work
on our side.
Sorry, we could not be more help. Please keep sharing your thoughts and
check back in a month or two.
Bill
_______________________________________________
Linux-c6x-dev mailing list
Linux-c6x-dev at linux-c6x.org
http://linux-c6x.org/cgi-bin/mailman/listinfo/linux-c6x-dev
More information about the Linux-c6x-dev
mailing list