File tree Expand file tree Collapse file tree 3 files changed +37
-12
lines changed
images/gpu/cuda-tests-12-8 Expand file tree Collapse file tree 3 files changed +37
-12
lines changed Original file line number Diff line number Diff line change @@ -23,30 +23,26 @@ RUN export DEBIAN_FRONTEND=noninteractive; \
23
23
mpich \
24
24
pkg-config \
25
25
vim \
26
+ wget \
26
27
x11-xserver-utils \
27
28
xdotool \
28
29
xvfb \
29
- zlib1g zlib1g-dev
30
+ zlib1g zlib1g-dev \
31
+ && apt -y purge 'golang*'
30
32
31
33
RUN git clone --depth=1 --branch=v12.8 --single-branch \
32
34
https://github.com/NVIDIA/cuda-samples.git /cuda-samples && cd /cuda-samples
33
35
34
- RUN apt install -y wget && apt -y purge golang*
35
-
36
- RUN wget https://go.dev/dl/go1.24.1.linux-amd64.tar.gz && \
37
- tar -C /usr/local -xzf go1.24.1.linux-amd64.tar.gz && \
38
- ln -s /usr/local/go/bin/go /usr/local/bin/go
39
-
40
36
ADD *.cu *.h *.sh *.go *.cc /
41
37
42
- RUN chmod 555 /*.sh && gcc -o /unsupported_ioctl /unsupported_ioctl.cc && \
38
+ RUN chmod 555 /*.sh && /install_go.sh && rm /install_go.sh && \
39
+ gcc -o /unsupported_ioctl /unsupported_ioctl.cc && \
43
40
go install \
44
41
github.com/TheZoraiz/ascii-image-converter@d05a757c5e02ab23e97b6f6fca4e1fbeb10ab559 && \
45
42
mv "$HOME/go/bin/ascii-image-converter" /usr/bin/ && \
46
- go build -o /run_sample /run_sample.go
47
-
48
- RUN mkdir /cuda-samples/build && cd /cuda-samples/build && \
49
- cmake ..
43
+ go build -o /run_sample /run_sample.go && \
44
+ mkdir /cuda-samples/build && cd /cuda-samples/build && \
45
+ cmake ..
50
46
51
47
# Override entrypoint to nothing, otherwise all invocations will have
52
48
# a copyright notice printed, which breaks parsing the stdout logs.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Copyright 2025 The gVisor Authors.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ ARCH=" amd64"
18
+
19
+ if [[ " $( uname -m) " == " aarch64" ]]; then
20
+ ARCH=" arm64"
21
+ fi
22
+
23
+ wget " https://go.dev/dl/go1.24.1.linux-${ARCH} .tar.gz" && \
24
+ tar -C /usr/local -xzf " go1.24.1.linux-${ARCH} .tar.gz" && \
25
+ ln -s /usr/local/go/bin/go /usr/local/bin/go
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ package smoke_test
17
17
18
18
import (
19
19
"context"
20
+ "runtime"
20
21
"strings"
21
22
"testing"
22
23
@@ -48,6 +49,9 @@ func TestNvidiaSmi(t *testing.T) {
48
49
49
50
func TestGPUHello (t * testing.T ) {
50
51
ctx := context .Background ()
52
+ if strings .HasPrefix (runtime .GOARCH , "arm" ) {
53
+ t .Skip ("Test does not cross compile on arm" )
54
+ }
51
55
runGPUHello (ctx , t , "gpu/cuda-tests" )
52
56
}
53
57
You can’t perform that action at this time.
0 commit comments