GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ROCm/hipBLASLt: [DEPRECATED] Moved to ROCm/rocm-libraries repo

BranchesTags
Open more actions menu

Latest commit

 

History

2,229 Commits
2,229 Commits

Folders and files

NameName
Last commit message
Last commit date
.azuredevops
.azuredevops
 
 
.githooks
.githooks
 
 
.github
.github
 
 
clients
clients
 
 
cmake
cmake
 
 
deps
deps
 
 
docker
docker
 
 
docs
docs
 
 
library
library
 
 
next-cmake
next-cmake
 
 
tensilelite
tensilelite
 
 
utilities
utilities
 
 
.clang-format
.clang-format
 
 
.gitignore
.gitignore
 
 
.readthedocs.yaml
.readthedocs.yaml
 
 
.style.yapf
.style.yapf
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CMakeLists.txt
CMakeLists.txt
 
 
CODEOWNERS
CODEOWNERS
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
install.sh
install.sh
 
 
rtest.py
rtest.py
 
 

Repository files navigation

hipBLASLt

Caution

The hipBLASLt repository is retired, please use the ROCm/rocm-libraries repository

hipBLASLt is a library that provides general matrix-matrix operations. It has a flexible API that extends functionalities beyond a traditional BLAS library, such as adding flexibility to matrix data layouts, input types, compute types, and algorithmic implementations and heuristics.

Note

The published hipBLASLt documentation is available at hipBLASLt in an organized, easy-to-read format, with search and a table of contents. The documentation source files reside in the hipBLASLt/docs folder of this repository. As with all ROCm projects, the documentation is open source. For more information, see Contribute to ROCm documentation.

hipBLASLt uses the HIP programming language with an underlying optimized generator as its backend kernel provider.

After you specify a set of options for a matrix-matrix operation, you can reuse these for different inputs. The general matrix-multiply (GEMM) operation is performed by the hipblasLtMatmul API.

The equation is:

$$D = Activation(alpha \cdot op(A) \cdot op(B) + beta \cdot op(C) + bias)$$

Where op( ) refers to in-place operations, such as transpose and non-transpose, and alpha and beta are scalars.

The activation function supports GELU, ReLU, and Swish (SiLU). the bias vector matches matrix D rows and broadcasts to all D columns.

For the supported data types, see Supported data types.

Documentation

Full documentation for hipBLASLt is available at rocm.docs.amd.com/projects/hipBLASLt.

Run the steps below to build documentation locally.

cd docs

pip3 install -r sphinx/requirements.txt

python3 -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html

Alternatively, build with CMake:

cmake -DBUILD_DOCS=ON ...

Requirements

To install hipBLASLt, you must meet the following requirements:

Required hardware:

  • gfx90a card
  • gfx94x card
  • gfx110x card

Required software:

  • Git
  • CMake 3.16.8 or later
  • python3.8 or later
  • python3.8-venv or later
  • AMD ROCm, version 5.5 or later
  • hipBLAS-common
  • roctracer

Build and install

You can build hipBLASLt using the install.sh script:

# Clone hipBLASLt using git
git clone https://github.com/ROCmSoftwarePlatform/hipBLASLt

# Go to hipBLASLt directory
cd hipBLASLt

# Run requirements.txt in folder tensilelite
python3 -m pip install -r tensilelite/requirements.txt

# Run install.sh script
# Command line options:
#   -h|--help         - prints help message
#   -i|--install      - install after build
#   -d|--dependencies - install build dependencies
#   -c|--clients      - build library clients too (combines with -i & -d)
#   -g|--debug        - build with debug flag
./install.sh -idc

NOTE: To build hipBLASLt for ROCm <= 6.2, pass the --legacy_hipblas_direct flag to install.sh

Unit tests

All unit tests are located in build/release/clients/staging/. To build these tests, you must build hipBLASLt with --clients.

You can find more information at the following links:

  • hipblaslt-test
  • hipblaslt-bench

TensileLite Host Library Tests

To build and run TensileLite Host Library Tests, use the following commands:

 cd tensilelite && mkdir build && cd build
 cmake -DTENSILE_DISABLE_CTEST=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo  -DCMAKE_CXX_COMPILER=/opt/rocm/bin/amdclang++ -DTensile_ROOT=$(pwd)/../Tensile ../HostLibraryTests
 make -j
 ./TensileTests 

Contribute

If you want to submit an issue, you can do so on GitHub.

To contribute to our repository, you can create a GitHub pull request.

About

[DEPRECATED] Moved to ROCm/rocm-libraries repo

github.com/ROCm/rocm-libraries

Topics

amdassemblyblasgemmgpu-computinghipmachine-learningmatrix-multiplicationrocm

Resources

Readme
MIT license
Activity
Custom properties

Stars

116 stars

Watchers

13 watching

Forks

145 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.