Skip to content

Commit a199179

Browse files
Merge pull request #1279 from raxod502/patch-1
Add tips about getting gpu-burn to compile
2 parents 85c211a + 10f5360 commit a199179

1 file changed

Lines changed: 19 additions & 14 deletions

File tree

content/hardware-failure.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -123,43 +123,48 @@ Click the 'Run' button to begin the program.
123123

124124
### GPU Burn (for NVIDIA GPU's only)
125125

126-
We can also test the GPU by using GPU Burn; first, if we're on Ubuntu, we'll need to install git and CUDA with this command:
126+
We can also test the GPU by using GPU Burn. First, ensure git and CUDA are installed with this command:
127127

128128
```bash
129-
sudo apt install git system76-cuda-latest
129+
sudo apt install git nvidia-cuda-toolkit
130130
```
131131

132-
Then, we will create the symlink for <u>gpu-burn</u>:
132+
Next, clone the repository and enter its directory with these commands:
133133

134134
```bash
135-
sudo ln -s /usr/lib/cuda-11.2 /usr/local/cuda
135+
git clone https://github.com/wilicc/gpu-burn.git
136+
cd gpu-burn
136137
```
137138

138-
Next, we can clone the repository with this command:
139+
Now we'll compile it:
139140

140141
```bash
141-
git clone https://github.com/wilicc/gpu-burn.git
142+
make
142143
```
143144

144-
Now that we have cloned it, we can move into that directory like so:
145+
#### GCC Errors (Pop!_OS 22.04)
145146

146-
```bash
147-
cd gpu-burn
147+
On some versions of Pop!_OS and Ubuntu (including 22.04), the default version of GCC may fail to compile gpu-burn. Install a compatible version with this command:
148+
149+
```
150+
sudo apt install g++-10
148151
```
149152

150-
Now we'll compile it:
153+
Then, run `make` again, specifying which version of GCC to use:
151154

152-
```bash
153-
make
154155
```
156+
make NVCCFLAGS='-ccbin /usr/bin/g++-10'
157+
```
158+
159+
#### Running GPU Burn Tests
155160

156-
For NVIDIA **RTX** GPUs we can use Tensor cores to run it like so (this example will run it for 60 minutes/1 hour):
161+
For NVIDIA **RTX** GPUs, run the test using Tensor cores like so (this example will run it for 3600 seconds/1 hour):
157162

158163
```bash
159164
./gpu_burn -tc 3600
160165
```
161166

162-
For NVIDIA **GTX** GPUs run it like so (this example will run it for 60 minutes/1 hour):
167+
For NVIDIA **GTX** GPUs, run the test using CUDA cores like so (this example will run it for 3600 seconds/1 hour):
163168

164169
```bash
165170
./gpu_burn 3600

0 commit comments

Comments
 (0)