Rate This Document
Findability
Accuracy
Completeness
Readability

Installing OPTIMIZED-ROUTINES

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the OPTIMIZED-ROUTINES installation package.
    tar -xvf optimized-routines-20.02.tar.gz
  3. Go to the directory generated after the decompression.
    cd optimized-routines-20.02
  4. Create a MATH directory.
    mkdir -p /path/to/MATH
  5. Copy the configuration file.
    cp config.mk.dist config.mk
  6. Modify the config.mk file.
    1. Open the config.mk file.
      vi config.mk
    2. Press i to enter the edit mode.

      Modify the content in line 13.

      CC = $(CROSS_COMPILE)clang

      Modify the content in line 19.

      HOST_CC = clang

      After performing 6.a, press Esc, type :set nu, and press Enter to display the line number.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  7. Perform the compilation and installation.
    make
  8. Copy the library file.
    cp -r ./build/* /path/to/MATH
  9. Add MATH to the environment variables.
    export PATH=/path/to/MATH/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/MATH/lib:$LD_LIBRARY_PATH