The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

Problems with CLAPACK-3.2.1 and F2C on a DSP

Open discussion regarding features, bugs, issues, vendors, etc.

Problems with CLAPACK-3.2.1 and F2C on a DSP

Postby kenny_mccartney » Mon May 24, 2010 9:51 am

Hi,

I'm trying to port CLAPACK to a DSP and I seem to be running into all sorts of problems. I was wondering if anyone had any advice or experience with this sort of thing.

The platform that I'm targeting is a DSP (with no operating system), so all I have is a C compiler for the target processor, plus basic C libraries. I've managed to build the reference BLAS library and the CLBLAS wrapper library without problems, but I'm having trouble with the F2C library. My problem (I think) is that F2C relies on a lot of things that I don't have for the target processor (sys/types.h, sys/stat.h, the fstat() routine, etc), and it is really intended for target systems with an operating system.

So, I guess my question is: is is possible to build a "bare-bones" version of F2C without all the I/O stuff? One of the READMEs in the install package has a tantalising clue:

"CLAPACK/F2CLIBS/ f2c I/O functions (libI77) and math functions (libF77)"

I guess I'm just after libF77,but the contents of the F2C directory don't give any clues about what that should contain.


Kenny
kenny_mccartney
 
Posts: 1
Joined: Fri May 21, 2010 10:32 am

Re: Problems with CLAPACK-3.2.1 and F2C on a DSP

Postby monger » Tue Jun 08, 2010 3:10 pm

I am new on the board, but I would be very interested in an answer to this question
monger
 
Posts: 1
Joined: Tue Jun 08, 2010 3:00 pm
Location: spain

Re: Problems with CLAPACK-3.2.1 and F2C on a DSP

Postby admin » Tue Jun 08, 2010 3:24 pm

The F2C project is open source, so you can try to adapt the library to fit your needs. Indeed I believe CLAPACK has indeed math and I/O routines, but CLAPACK is a rather complicated piece of code.
I would maybe start with a subset of CLAPACK if I were you or even rewrite the routines you need in C.
Also no other compiler is available on that machine? like a Fortran compiler?
I saw that you build the reference BLAS, the reference BLAS is in FORTRAN, so why not use directly LAPACK.
Also a LAPACK C wrapper is available (like the CBLAS for BLAS).
admin
Site Admin
 
Posts: 616
Joined: Wed Dec 08, 2004 7:07 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 7 guests