Skip to content
Snippets Groups Projects
Commit ebcaef73 authored by Klaus Reuter's avatar Klaus Reuter
Browse files

extend to cuda example

parent 57d87104
No related branches found
No related tags found
No related merge requests found
Pipeline #138144 passed
python_test_numpy:
image: python:3.9
tags:
- docker
- cloud
cache:
key: "python39_pip_cache_20220731"
paths:
......@@ -12,3 +12,35 @@ python_test_numpy:
- pip install numpy==1.22.4
script:
- python test_numpy.py
stages:
- build
- test
cuda_build_on_cpu_runner:
image: gitlab-registry.mpcdf.mpg.de/mpcdf/module-image
tags:
- cloud
stage: build
cache:
key: "$CI_COMMIT_SHA"
paths:
- bin
script:
- module load cuda/11.4
- mkdir -p bin
- nvcc -o bin/test_cuda.exe test_cuda.cu
cuda_test_on_gpu_runner:
image: gitlab-registry.mpcdf.mpg.de/mpcdf/module-image
tags:
- cloud-gpu
stage: test
cache:
key: "$CI_COMMIT_SHA"
paths:
- bin
script:
- module load cuda/11.4
- ./bin/test_cuda.exe
#include <cstdio>
__global__ void cuda_hello(){
printf("Hello World from GPU!\n");
}
int main() {
cuda_hello<<<1,1>>>();
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment