libxsmm

(β˜… 974)

Library for specialized dense and sparse matrix operations, and deep learning primitives.

  • .abi.txt
  • .clang-format
  • .codefile
  • .flock.sh
  • .gitattributes
  • .gitconfig
  • .gitignore
  • .markdownlint.json
  • .mktmp.sh
  • .packit.yaml
  • .readthedocs.yml
  • .state.sh
  • .travis.yml
  • _config.yml
  • BUILD
  • CHANGELOG.md
  • CMakeLists.txt
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • fpm.toml
  • LICENSE.md
  • Makefile
  • Makefile.inc
  • mkdocs.yml
  • PULL_REQUEST_TEMPLATE.md
  • README.md
  • SECURITY.md
  • VERSION
  • version.txt
  • WORKSPACE

# Installation Guide

1. Get the code
git clone https://github.com/libxsmm/libxsmm

Downloads the entire project code from GitHub to your computer.

cd libxsmm

Moves into the project folder you just downloaded.

2. CMake

Medium Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • CMake The tool used to generate build configuration.
  • C/C++ 컴파일러 Windows needs Visual Studio (Community edition, free), macOS needs Xcode Command Line Tools, Linux needs the gcc/g++ package.
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/path/to/libxsmm-install

Type this command into your terminal and run it.

cmake --build build --target install -j

Type this command into your terminal and run it.

βœ… Check that an executable was created inside the build folder, then run it directly (e.g. ./build/app_name).

Pulled directly from this repo's README.

3. .NET

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • .NET SDK The SDK required for the dotnet command.
cd ide

This project's files live in a subfolder, so move into it first.

dotnet restore

Downloads the packages the project depends on.

dotnet run

Builds the project and runs it immediately.

βœ… After dotnet run, check the message or address shown in the terminal.

4. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
pip install -r .theme/requirements.txt

Installs the Python libraries listed in requirements.txt (or similar).

python <μ‹€ν–‰ν•  파일λͺ…>.py # READMEμ—μ„œ μ •ν™•ν•œ μ‹€ν–‰ 파일λͺ…을 ν™•μΈν•˜μ„Έμš”

Runs the Python script (or module).

βœ… If it runs without errors and prints output in the terminal, it worked.

5. Make

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make STATIC=0

Compiles the code based on the generated build configuration to produce an executable.

make

Compiles the code based on the generated build configuration to produce an executable.

make CXX=CC CC=cc FC=ftn

Compiles the code based on the generated build configuration to produce an executable.

make COMPATIBLE=1

Compiles the code based on the generated build configuration to produce an executable.

make INTRINSICS=1

Compiles the code based on the generated build configuration to produce an executable.

βœ… If it finishes without errors, it worked. Try running the generated executable directly.

Pulled directly from this repo's README.

// repository documentation