Readme.md 2.33 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Introduction:
#############

RocBandwidthTest is designed to capture the performance characteristics of buffer
copying and kernel read/write operations. The help screen of the benchmark
shows various options one can use in initiating cop/read/writer operations.
In addition one can also query the topology of the system in terms of memory
pools and their agents

Build Environment:
##################

To be able to build RocBandwidthTest, users must ensure that the build platform has
following conditions satisfied:
Ramesh Errabolu's avatar
Ramesh Errabolu committed
16

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Build Procedure:
################

The following simply lists the steps to build RocBandwidthTest

--- Create a build directory in the project folder - roc_bandwidth_test.

        e.g. mkdir ./build

--- Set working directory to be the new build directory

        e.g. cd ./build

--- Invoke Cmake to interpret build rules and generate native build files
    The argument for cmake should be the root folder of RocBandwidthTest
    test suite

Ashutosh Mishra's avatar
Ashutosh Mishra committed
34
35
36
37
38
        // Assume that Roc Runtime has its libraries & headers are located in the path :
        // libraries : _ABSOLUTE_PATH_TO_ROCR_LIBS_/lib
        // headers   : _ABSOLUTE_PATH_TO_ROCR_LIBS_/include/hsa
        // Note : Observe that both include & lib folder are under common path (_ABSOLUTE_PATH_TO_ROCR_LIBS_)

Ramesh Errabolu's avatar
Ramesh Errabolu committed
39
        // Builds Debug version
Ashutosh Mishra's avatar
Ashutosh Mishra committed
40
41
42
        // Assumes pwd is _ABSOLUTE_PATH_TO_RBT/roc_bandwidth_test/build

        e.g. cmake -DCMAKE_BUILD_TYPE="Debug"   \
43
                   -DCMAKE_MODULE_PATH="_ABSOLUTE_PATH_TO_RBT/rocm_bandwidth_test/cmake_modules"  \
Ashutosh Mishra's avatar
Ashutosh Mishra committed
44
45
                   -DCMAKE_PREFIX_PATH="_ABSOLUTE_PATH_TO_ROCR_LIBS_"
                   ..
46

Ramesh Errabolu's avatar
Ramesh Errabolu committed
47
        // Builds Release version - default
Ashutosh Mishra's avatar
Ashutosh Mishra committed
48
        // Assumes pwd is _ABSOLUTE_PATH_TO_RBT/roc_bandwidth_test/build
Ramesh Errabolu's avatar
Ramesh Errabolu committed
49
        e.g. cmake -DCMAKE_MODULE_PATH="_ABSOLUTE_PATH_TO_RBT/rocm_bandwidth_test/cmake_modules"  \
Ashutosh Mishra's avatar
Ashutosh Mishra committed
50
                   -DCMAKE_PREFIX_PATH="_ABSOLUTE_PATH_TO_ROCR_LIBS_"
Ramesh Errabolu's avatar
Ramesh Errabolu committed
51
                   ..
52
53
54
55
56
57
58
59
60
61
62
63
64
65

--- Invoke the native build rules generated by cmake to build the various
    object, library and executable files

        e.g. make

--- Invoke the install command to copy build artifacts to pre-defined folders
    of RocBandwidthTest suite. Upon completion artifacts will be copied to the
    bin and lib directories of build directory

        e.g. make install

    @note: All executables will be found in <build_directory>/bin folder