@@ -57,7 +57,7 @@ To build hipRAND, CMake version 3.16 or later is required.
57
57
Additionally, to build hipRAND for the ROCm platform, the following components are required:
58
58
59
59
* `ROCm Software <https://rocm.docs.amd.com/projects/install-on-linux/en/latest/ >`_ (version 5.0.0 or later)
60
- * `rocRAND <https://github.com/ROCm/rocRAND.git >`_
60
+ * `rocRAND <https://github.com/ROCm/rocm-libraries/tree/develop/projects/rocrand >`_
61
61
62
62
To build hipRAND for the CUDA platform, the following applications are required:
63
63
@@ -67,13 +67,45 @@ To build hipRAND for the CUDA platform, the following applications are required:
67
67
Downloading the source code
68
68
----------------------------
69
69
70
- You can find the hipRAND source code in the `hipRAND GitHub Repository <https://github.com/ROCm/hipRAND >`_.
70
+ The hipRAND source code is available from the `hiprand folder <https://github.com/ROCm/rocm-libraries/tree/develop/projects/hiprand >`_ of
71
+ the `rocm-libraries <https://github.com/ROCm/rocm-libraries >`_ GitHub repository.
71
72
Use the branch that matches the ROCm version installed on the system.
72
- For example, on a system with ROCm 6.3 installed, use the following command to obtain the hipRAND version 6.3 source code:
73
+ The hipRAND source code can be cloned in two different ways.
73
74
74
- .. code-block :: shell
75
+ .. note ::
76
+
77
+ For both methods, replace all occurrences of "x.y" in the commands with the version number matching your ROCm installation.
78
+ For example, if you have ROCm 7.0 installed, clone the ``release/rocm-rel-7.0 `` branch.
79
+
80
+ * Clone the entire `rocm-libraries <https://github.com/ROCm/rocm-libraries >`_ repository.
81
+ This is the default method and is the recommended option if you need to install other
82
+ ROCm libraries alongside hipRAND. However, due to the download size, ``git clone ``
83
+ might take a significant amount of time to complete.
84
+
85
+ On a system with ROCm x.y installed, use the following command to obtain the source code
86
+ for hipRAND version x.y. Replace x.y with the actual version:
87
+
88
+ .. code-block :: shell
89
+
90
+ git clone -b release/rocm-rel-7.0 https://github.com/ROCm/rocm-libraries.git
91
+
92
+ * Clone the individual hipRAND project folder. This option only fetches the hipRAND source code,
93
+ without any additional ROCm libraries. This significantly reduces the amount of time required
94
+ to complete the clone operation. However, it requires Git 2.25 or later.
95
+ To use this method to obtain the source code for hipRAND version x.y, run the following commands.
96
+ Replace x.y with the actual version:
97
+
98
+ .. code-block :: shell
99
+
100
+ git clone -b release/rocm-rel-x.y --no-checkout --depth=1 --filter=tree:0 https://github.com/ROCm/rocm-libraries.git
101
+ cd rocm-libraries
102
+ git sparse-checkout set --cone projects/hiprand
103
+ git checkout release/rocm-rel-x.y
104
+
105
+ .. note ::
75
106
76
- git checkout -b release/rocm-rel-6.3 https://github.com/ROCm/hipRAND.git
107
+ To build ROCm 6.4 and earlier, use the hipRAND repository at `<https://github.com/ROCm/hipRAND >`_.
108
+ For more information, see the documentation associated with the release you want to build.
77
109
78
110
Building the library
79
111
----------------------------
@@ -82,7 +114,7 @@ After obtaining the sources and dependencies, build hipRAND for ROCm software us
82
114
83
115
.. code-block :: shell
84
116
85
- cd hipRAND
117
+ cd rocm-libraries/projects/hiprand
86
118
./install --install
87
119
88
120
This automatically builds all required dependencies, excluding Git and the requirements listed above,
@@ -95,12 +127,12 @@ Building with CMake
95
127
----------------------------
96
128
97
129
For a more detailed installation process, build hipRAND manually using CMake.
98
- This enables certain configuration options that are not available through the ``./ install `` script.
130
+ This enables certain configuration options that are not available through the ``install `` script.
99
131
To build hipRAND, use CMake with the following configuration:
100
132
101
133
.. code-block :: shell
102
134
103
- cd hipRAND ; mkdir build; cd build
135
+ cd rocm-libraries/projects/hiprand ; mkdir build; cd build
104
136
# Configure the project
105
137
CXX=< compiler> cmake [options] ..
106
138
# Build
@@ -143,7 +175,7 @@ Use the following tips to troubleshoot build problems.
143
175
rocrandConfig.cmake
144
176
rocrand-config.cmake
145
177
146
- **Solution **: Install `rocRAND <https://github.com/ROCm/rocRAND.git >`_.
178
+ **Solution **: Install `rocRAND <https://github.com/ROCm/rocm-libraries/tree/develop/projects/rocrand >`_.
147
179
148
180
* ``ROCM `` package configuration file not found:
149
181
@@ -178,7 +210,7 @@ The hipRAND Python API Wrapper requires the following dependencies:
178
210
179
211
.. code-block :: shell
180
212
181
- export HIPRAND_PATH=~ /hipRAND /build/library/
213
+ export HIPRAND_PATH=~ /rocm-libraries/projects/hiprand /build/library/
182
214
183
215
Installation
184
216
----------------------------
@@ -187,12 +219,12 @@ To install the Python hipRAND module using ``pip``, run these commands:
187
219
188
220
.. code-block :: shell
189
221
190
- cd hipRAND /python/hiprand
222
+ cd rocm-libraries/projects/hiprand /python/hiprand
191
223
pip install .
192
224
193
225
Use these commands to run the tests:
194
226
195
227
.. code-block :: shell
196
228
197
- cd hipRAND /python/hiprand
229
+ cd rocm-libraries/projects/hiprand /python/hiprand
198
230
python tests/hiprand_test.py
0 commit comments