Loading ...
Sorry, an error occurred while loading the content.
 

x86_64 pgf95 Makefile.header

Expand Messages
  • brian_o_smith
    Just reporting apparent success (not extensively tested yet) compiling (the non parallelised version) CNS 1.21 on a LINUX x86_64 with the Portland Group pgf95
    Message 1 of 1 , Dec 2, 2008
      Just reporting apparent success (not extensively tested yet) compiling
      (the non parallelised version) CNS 1.21 on a LINUX x86_64 with the
      Portland Group pgf95 compiler.
      After a failed initial attempt (this system is pre gfortran), in the
      intel-x86_64bit-linux directory I copied the
      Makefile.header.2.gfortran to Makefile.header.4.pgf95 and modified it
      thus:

      $ diff Makefile.header.2.gfortran Makefile.header.4.pgf95
      10,12c10,12
      < F77 = gfortran
      < F77STD = -fdefault-integer-8 -w
      < F77OPT = -O3 $(CNS_MALIGN_I86) -funroll-loops -ffast-math
      ---
      > F77 = pgf95
      > F77STD = -i8 -w
      > F77OPT = -fast -Mcache_align -Mdalign -Munixlogical
      16,17c16,17
      < CC = gcc
      < CCFLAGS = -O -DINTEGER='long int' -DCNS_ARCH_TYPE_$(CNS_ARCH_TYPE)
      $(EXT_CCFLAGS)
      ---
      > CC = pgcc
      > CCFLAGS = -fast -DINTEGER='long int'
      -DCNS_ARCH_TYPE_$(CNS_ARCH_TYPE) $(EXT_CCFLAGS)
      20c20
      < LD = gfortran
      ---
      > LD = pgf95
      27,28c27,28
      < F77FLAGS="-w -O" CCFLAGS="-O" \
      < F77LINK="" CCLINK="-lm"
      ---
      > F77FLAGS="-w -fast" CCFLAGS="-O" \
      > F77LINK="" CCLINK="-lm" LEXLIB="fl"

      Then "make install" does the business. I guess sticking this file in
      instlib/machine/supported/intel-x86_64bit-linux/ would make it persist.

      Brian Smith
    Your message has been successfully submitted and would be delivered to recipients shortly.