You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sphinx/dev_guide/ci_tasks.rst
+25-24Lines changed: 25 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,46 +190,47 @@ Building the Compiler
190
190
^^^^^^^^^^^^^^^^^^^^^
191
191
192
192
.. important:: Because Intel updates their compiler repo daily, it is possible
193
-
that the head of the SYCL branch will fail to build. In the event that it
194
-
does not build, try checking out an earlier commit. On the Intel/LLVM GitHub
195
-
page, one can see which of their commits builds by checking the status
196
-
badge next to each commit. Look for a commit that passes.
193
+
that the head of the SYCL branch will fail to build. If it does not build,
194
+
try checking out an earlier commit in your local cloned repo. On the
195
+
`Intel/LLVM GitHub Project <https://github.com/intel/llvm>`_, you can see
196
+
which of their commits builds by checking the status badge next to each
197
+
commit. Look for a recent commit that passes.
197
198
198
199
199
-
#. On LC machines, it is following the good neighbor policy to do your build on a compute node.
200
+
#. On LC machines, please follow the good neighbor policy and do your build on a compute node.
200
201
201
202
Use an appropriate bank to get an interactive node, e.g on Corona::
202
203
203
204
flux alloc -t 60 -N 1 --bank=wbronze
204
205
205
-
#. Load the module of the version of GCC headers that you want to use. We typically use the system default, which on corona at time of writing is gcc/10.3.1-magic::
206
+
#. Load the module of the version of GCC headers that you want to use. We typically use the system default, which on corona is currently gcc/10.3.1-magic. Set then environment variable ``GCC_VERSION`` to the GCC version, then load the module::
206
207
207
-
GCC_VERSION=10.3.1
208
208
module load gcc/${GCC_VERSION}-magic
209
209
210
-
#. Load the module of the version of ROCm that you want to use::
211
-
ROCM_VERSION=6.4.2
210
+
#. Load the module of the version of ROCm that you want to use. Set the environment variable ``ROCM_VERSION`` to the ROCm version, then load the module::
211
+
212
212
module load rocm/${ROCM_VERSION}
213
213
214
-
#. Load Python module you want to use. At time of writing, the LLVM configure requires at least version 3.7. we use Corona default::
215
-
PYTHON_VERSION=3.9.12
214
+
#. Load Python module you want to use. The LLVM configure requires at least version 3.7. Set the environment variable ``PYTHON_VERSION`` to the Python version, then load the module::
215
+
216
216
module load python/${PYTHON_VERSION}
217
217
218
218
#. Clone the SYCL branch of Intel's LLVM compiler::
219
219
220
220
git clone https://github.com/intel/llvm -b sycl
221
221
222
-
#. cd into the LLVM folder and extract the GIT SHA for naming the install directories. The install directory uses the naming convention ``clang_sycl_<git sha>_hip_gcc<version>_rocm<version>``::
222
+
#. Go into the LLVM folder and get the Git SHA for the commit hash you are building. The first 12 characters of the hash value are used in the name of the compiler install directory. To get the first 12 characters of the hash value::
#. Then, set the environment variable ``GIT_SHA`` to the hash value, and set the environment variable ``INSTALL_PREFIX`` to the name of the installation directory, which has the following form: ``/usr/workspace/raja-dev/clang_sycl_${GIT_SHA}_hip_gcc${GCC_VERSION}_rocm${ROCM_VERSION}``
229
228
230
-
a. Configure
229
+
#. After, the compiler repo code is in place and the build environment is set as described in the previous steps, build and install the compiler.
0 commit comments