ROCm/rocFFT
소개
[DEPRECATED] Moved to ROCm/rocm-libraries repo
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalrocFFT
[!CAUTION] The rocFFT repository is retired, please use the ROCm/rocm-libraries repository
rocFFT is a software library for computing fast Fourier transforms (FFTs) written in the HIP programming language. It's part of AMD's software ecosystem based on ROCm. The rocFFT library can be used with AMD and NVIDIA GPUs.
Documentation
[!NOTE] The published rocFFT documentation is available at rocFFT in an organized, easy-to-read format, with search and a table of contents. The documentation source files reside in the rocFFT/docs folder of this repository. As with all ROCm projects, the documentation is open source. For more information, see Contribute to ROCm documentation.
To build our documentation locally, use the following code:
cd docs
pip3 install -r sphinx/requirements.txt
python3 -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
Build and install
You can install rocFFT using pre-built packages or building from source.
Installing pre-built packages:
Download the pre-built packages from the ROCm package servers or use the GitHub releases tab to download the source (this may give you a more recent version than the pre-built packages).
Run:
sudo apt update && sudo apt install rocfft
Building from source:
rocFFT is compiled with AMD's clang++ and uses CMake. You can specify several options to customize your build. The following commands build a shared library for supported AMD GPUs:
mkdir build && cd build cmake -DCMAKE_CXX_COMPILER=amdclang++ -DCMAKE_C_COMPILER=amdclang .. make -jYou can compile a static library using the
-DBUILD_SHARED_LIBS=offoption.With rocFFT, you can use indirect function calls by default; this requires ROCm 4.3 or higher. You can use
-DROCFFT_CALLBACKS_ENABLED=offwith CMake to prevent these calls on older ROCm compilers. Note that with this configuration, callbacks won't work correctly.rocFFT includes the following clients:
rocfft-bench: Runs general transforms and is useful for performance analysisrocfft-test: Runs various regression testsVarious small samples
Client CMake option Dependencies rocfft-bench-DBUILD_CLIENTS_BENCH=onhipRAND rocfft-test-DBUILD_CLIENTS_TESTS=onhipRAND, FFTW, GoogleTest samples -DBUILD_CLIENTS_SAMPLES=onNone coverage -DBUILD_CODE_COVERAGE=ONclang, llvm-cov Clients are not built by default. To build them, use
-DBUILD_CLIENTS=on. The build process downloads and builds GoogleTest and FFTW if they are not already installed.Clients can be built separately from the main library. For example, you can build all the clients with an existing rocFFT library by invoking CMake from within the
rocFFT-src/clientsfolder:mkdir build && cd build cmake -DCMAKE_CXX_COMPILER=amdclang++ -DCMAKE_PREFIX_PATH=/path/to/rocFFT-lib .. make -jTo install client dependencies on Ubuntu, run:
sudo apt install libgtest-dev libfftw3-dev libboost-devWe use version 1.11 of GoogleTest.
You can generate a test coverage report with the following:
cmake -DCMAKE_CXX_COMPILER=amdclang++ -DBUILD_CLIENTS_SAMPLES=ON -DBUILD_CLIENTS_TESTS=ON -DBUILD_CODE_COVERAGE=ON <optional: -DCOVERAGE_TEST_OPTIONS="cmdline args to pass to rocfft-test (default: --smoketest)"> .. make -j coverageThe above will output the coverage report to the terminal and also save an html coverage report to
$PWD/coverage-report.
Examples
A summary of the latest functionality and workflow to compute an FFT with rocFFT is available on the rocFFT documentation portal.
You can find additional examples in the clients/samples subdirectory.
Support
You can report bugs and feature requests through the GitHub issue tracker.
Contribute
If you want to contribute to rocFFT, you must follow our contribution guidelines.
관련 프로젝트 살펴보기
불러오는 중…