- mkdir diffusion
- cd diffusion
- cp ~stewart/cs575/fall03/diffusion/* .
(do not forget the final "dot".)
- Now with the Fortran source codes sgeco.f, sgesl.f, blas.f.
Fortran Programmers:
f90 -o fdiff f_diffusion.f -xlic_lib=sunperf
and you can explore the effect on timing by looking at different
optimization levels using the
-O
option on the compile line, e.g. -O2 or -O4 or such.
---------------------------------------
C Programmers:
cc -o cdiff c_diffusion.c -xlic_lib=sunperf
and you can explore the effect on timing by looking at different
optimization levels using the
-O
option on each of the compile lines
----------------------------------------
- f90 -o fdiff-sunperf f_diffusion.f -xlic_lib=sunperf
- f90 -o fdiff-source f_diffusion.f sgeco.f sgesl.f blas.f
or, for those working in C
- cc -o cdiff-sunperf c_diffusion.c -xlic_lib=sunperf
- f77 -c sgeco.f sgesl.f blas.f
- cc -o cdiff-source c_diffusion.c sgeco.o sgesl.o blas.o -lm -lF77
- (-lm -lF77 will resolve the math library and Fortran 77 library
references the linker needs)