8/14/2023 0 Comments Blas windows cmakeThe vcpkg version tag is specified at the top of the rdeps.py file. CMake installed with Visual Studio 2022 meets this requirement. The minimum version requirement for CMake is listed in the top level CMakeLists.txt file. Pip will install into your current python3 environment. The -d flag passed to rmake.py installs dependencies the same as ifĬurrently rdeps.py uses vcpkg and pip to install the build dependencies, with vcpkg being cloned into environment variable VCPKG_PATH or defaults into C:\github\vckpg. Library Dependencies #ĭependencies installed by the python script rdeps.py are listed in the rdeps.xml configuration file. This full cmake command can be used in your own build scripts if you want to bypass the python helper script for a fixed set of build options. rmake.py will print to the screen the full cmake command being used to configure rocBLAS based on your rmake command line options. The client contains testing and benchmark tools. You only need (dependencies library) if you call rocBLAS from your code and only want the library built. The user can install dependencies and build either: You can run the HIP SDK compiler to report the verison from the bin/ folder with:īelow are steps to build using the rmake.py script. The version of the ROCm HIP SDK may be shown in the path of default installation, but The rocBLAS source code, which is the same as for the ROCm linux distributions, is available at the rocBLAS github page. May also increase in the future as more functions are added to rocBLAS and dependencies such as Tensile grow. RocBLAS is built with a different Tensile logic target (see the –logic command from rmake.py –help). Requirements #Īs a rough estimate, 64GB of system memory is required for a full rocBLAS build. However as these two distributions have different stacks the code and build process have subtle variations. The codebase used for rocBLAS for the HIP SDK is the same as used for linux ROCm distribution. If desired, users can use the following instructions to build rocBLAS from source. Building and Installing rocBLAS #įor most users, building from source is not necessary, as rocBLAS can be used after installing the prebuilt Only use these two installed files when needed in user code.įind other rocBLAS included files in HIP SDK \include\rocblas\internal, however,ĭo not include these files directly into source code. Once installed, find rocblas.h in the HIP SDK \include\rocblasĭirectory. The contents are read at execution time much like additional DLL files. This must be kept in the same directory as the rocblas.dll or can be located elsewhere if setting the environment variable ROCBLAS_TENSILE_LIBPATH to the non-standard location. Note an additional runtime dependency beyond the dynamic link library (.dll) file is the entire rocblas/ subdirectory found in the HIP SDK bin folder. Into rocBLAS, and the rocBLAS import library and dynamic link library will become respective link-time and run-time The rocblas.h header file must be included in the user code to make calls Otherwise once installed, rocBLAS can be used just like any other library with a C API. Find_package ( rocblas ) target_link_libraries ( your_exe PRIVATE roc :: rocblas )Įxample code of consuming rocBLAS on windows with CMake can be found at rocBLAS-Examples github page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |