XBLAS Fortran->C interface

Describes the XBLAS changes that add a Fortran interface.

Table of Contents

1 Introduction

We need a portable-enough method for Fortran LAPACK routines to call the C XBLAS routines. By adding a few ugly hacks to the XBLAS M4 generators, we can allow for the common Fortran name-mangling possibilities.

The new src/f2c-bridge.h defines FC_FUNC and FC_FUNC_ macros similar to autoconf's. Rather than rely on build-time tests, we ask the users to pass the correct cpp options from the following in their make.inc:

The FC_FUNC macros also can provide a C->Fortran bridge, and we'll need that for calling XERBLA.

2 Relevant patches to the XBLAS

These are just to show individual, localized changes and their explanations.

3 Current XBLAS snapshot

A snapshot of my current tree is in xblas-2006.09.09.tar.bz2. This isn't an "official" tree yet; ask Yozo for a real one.

I'm not sure how UTK wants to handle including XBLAS changes, and I'm also not 100% sure which version currently is in the LAPACK repo.

I think this snapshot has the following additional changes:

Author: E. Jason Riedy <ejr@cs.berkeley.edu>

Date: 2006/09/09 04:45:29 PM