1. Aron Ahmadia
  2. amcs291

Wiki

Clone wiki

amcs291 / Code_Building

Code Building

Get the repository

mkdir ~/sandbox
cd ~/sandbox
hg clone http://bitbucket.org/ahmadia/amcs291
cd amcs291
cd matmul_files

Compile a source file from the command line

gcc -c matmul.c

Inspect symbols

nm matmul.o

Inspect assembly language listings

# see objdump for Linux
otool -t matmul.o

Inspect machine language listings

# see objdump for Linux
otool -tv matmul.o

Inspect symbolic machine language listings

# see objdump for Linux
otool -tV matmul.o

Build an executable (or three)

make
make matmul-blas

Inspect global symbols for *_dgemm.o

nm -g basic_dgemm.o
nm -g blocked_dgemm.o

Inspect linkage of the matmul binaries

# see ldd for Linux
otool -L matmul matmul-blocked matmul-blas

Verify presence of _dgemm in Accelerate

nm /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate | grep _dgemm

Where is _dgemm?

Updated