-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
59 lines (32 loc) · 1.71 KB
/
Copy pathREADME
File metadata and controls
59 lines (32 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Chroma Build Package for GPU JIT Architectures
This repository provides automated build scripts to simplify compiling **Chroma** on top of **qdp-jit**. It supports building for AMD (ROCm), NVIDIA (CUDA), and Intel (Level Zero) GPU architectures, automatically handling Chroma and all necessary prerequisites.
## Prerequisites
Before beginning the build process, ensure that you have loaded the appropriate software modules for your cluster or environment (e.g., specific GPU drivers, CMake, and your MPI stack).
## Quick Start Build Guide
Choose the directory corresponding to your target GPU architecture:
* AMD: `rocm-jit-noquda/`
* NVIDIA: `cuda/`
* Intel: `level0-jit-noquda/`
Follow the three steps below to download, configure, and build.
1. Download the Source Code
---------------------------
From the root of the repository, run the download script specific to your hardware to fetch Chroma and its dependencies:
# For AMD GPUs
./download_sources_rocm.sh
# For NVIDIA GPUs
./download_sources_cuda.sh
# For Intel GPUs
./download_sources_intel.sh
2. Configure the Environment
----------------------------
Change to the appropriate architecture directory and modify the environment configuration script to match your system.
# Navigate to your target architecture directory (e.g., CUDA)
cd cuda/
Open env.sh in your preferred text editor. Verify and update the following variables to ensure they point to your MPI compiler wrappers and correct installation paths:
export CXX=mpicxx
export CC=mpicc
Make sure any other cluster-specific paths or modules are also correctly exported here.
3. Run the Build Script
-----------------------
Once env.sh is configured, initiate the automated build process:
./build_all.sh