File tree 15 files changed +49
-20
lines changed
15 files changed +49
-20
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %libomptarget-compile-run-and-check-nvptx64-nvidia-cuda
2
- // REQUIRES: nvptx64-nvidia-cuda
1
+ // RUN: %libomptarget-compile-run-and-check-generic
2
+ // RUN: %libomptarget-compileopt-run-and-check-generic
3
3
4
4
#include <omp.h>
5
5
#include <stdio.h>
Original file line number Diff line number Diff line change 1
- // RUN: %libomptarget-compile-nvptx64-nvidia-cuda
1
+ // RUN: %libomptarget-compile-generic
2
2
// RUN: env LIBOMPTARGET_SHARED_MEMORY_SIZE=256 \
3
- // RUN: %libomptarget-run-nvptx64-nvidia-cuda | %fcheck-nvptx64-nvidia-cuda
4
- // REQUIRES: nvptx64-nvidia-cuda
3
+ // RUN: %libomptarget-run-generic | %fcheck-generic
4
+
5
+ // RUN: %libomptarget-compileopt-generic
6
+ // RUN: env LIBOMPTARGET_SHARED_MEMORY_SIZE=256 \
7
+ // RUN: %libomptarget-run-generic | %fcheck-generic
8
+
9
+ // UNSUPPORTED: x86_64-pc-linux-gnu
10
+ // UNSUPPORTED: x86_64-pc-linux-gnu-LTO
5
11
6
12
#include <omp.h>
7
13
#include <stdio.h>
Original file line number Diff line number Diff line change 1
- // RUN: %libomptarget-compilexx-run-and-check-generic
2
-
3
- // Error on the gpu that crashes the host
4
- // UNSUPPORTED: amdgcn-amd-amdhsa
1
+ // On AMDGPU we don't have malloc support yet. We need optimizations
2
+ // to avoid a thread state which requires malloc.
3
+ //
4
+ // XUN: %libomptarget-compilexx-run-and-check-generic
5
+ // RUN: %libomptarget-compileoptxx-run-and-check-generic
5
6
6
7
#include < iostream>
7
8
Original file line number Diff line number Diff line change 1
- // RUN: %libomptarget-compilexx-nvptx64-nvidia-cuda && %libomptarget-run-fail-nvptx64-nvidia-cuda
2
- // REQUIRES: nvptx64-nvidia-cuda
1
+ // RUN: %libomptarget-compilexx-generic && %libomptarget-run-fail-generic
2
+ // RUN: %libomptarget-compileoptxx-generic && %libomptarget-run-fail-generic
3
3
4
4
int main (int argc, char *argv[]) {
5
5
#pragma omp target
Original file line number Diff line number Diff line change 1
1
// RUN: %libomptarget-compile-generic -fopenmp-offload-mandatory -O3
2
2
// RUN: %libomptarget-run-generic
3
+ // RUN: %libomptarget-compileopt-generic -fopenmp-offload-mandatory -O3
4
+ // RUN: %libomptarget-run-generic
3
5
4
6
// UNSUPPORTED: aarch64-unknown-linux-gnu
5
7
// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
Original file line number Diff line number Diff line change 1
1
// RUN: %libomptarget-compilexx-run-and-check-generic
2
+ // RUN: %libomptarget-compileoptxx-run-and-check-generic
2
3
3
4
#include < cassert>
4
5
#include < iostream>
Original file line number Diff line number Diff line change 1
1
// RUN: %libomptarget-compilexx-generic -O3 && %libomptarget-run-generic
2
2
// RUN: %libomptarget-compilexx-generic -O3 -ffast-math && %libomptarget-run-generic
3
+ // RUN: %libomptarget-compileoptxx-generic -O3 && %libomptarget-run-generic
4
+ // RUN: %libomptarget-compileoptxx-generic -O3 -ffast-math && %libomptarget-run-generic
3
5
4
6
#include < iostream>
5
7
Original file line number Diff line number Diff line change 1
- // The test is disabled for now because of the flaky failure which can cause
2
- // Buildbot gives false negative results.
3
-
4
- // RUN: nothing
5
- // REQUIRES: testToBeFixed
1
+ // RUN: %libomptarget-compilexx-generic -O3 && %libomptarget-run-generic
2
+ // RUN: %libomptarget-compilexx-generic -O3 -ffast-math && \
3
+ // RUN: %libomptarget-run-generic
4
+ // RUN: %libomptarget-compileoptxx-generic -O3 && %libomptarget-run-generic
5
+ // RUN: %libomptarget-compileoptxx-generic -O3 -ffast-math && \
6
+ // RUN: %libomptarget-run-generic
7
+
8
+ // UNSUPPORTED: x86_64-pc-linux-gnu
9
+ // UNSUPPORTED: x86_64-pc-linux-gnu-LTO
6
10
7
11
#include < cassert>
8
12
#include < cmath>
Original file line number Diff line number Diff line change 1
1
// RUN: %libomptarget-compilexx-generic && \
2
2
// RUN: env LIBOMPTARGET_STACK_SIZE=2048 %libomptarget-run-generic
3
+ // RUN: %libomptarget-compileoptxx-generic && \
4
+ // RUN: env LIBOMPTARGET_STACK_SIZE=2048 %libomptarget-run-generic
3
5
6
+ // We need malloc/global_alloc support
4
7
// UNSUPPORTED: amdgcn-amd-amdhsa
5
8
6
9
#include < cassert>
Original file line number Diff line number Diff line change 1
1
// RUN: %libomptarget-compilexx-and-run-generic
2
+ // RUN: %libomptarget-compileoptxx-and-run-generic
2
3
3
4
#include < cassert>
4
5
#include < iostream>
Original file line number Diff line number Diff line change 1
1
// RUN: %libomptarget-compile-generic -O1 && %libomptarget-run-generic
2
2
// -O1 to run openmp-opt
3
+ // RUN: %libomptarget-compileopt-generic -O1 && %libomptarget-run-generic
3
4
4
5
int main (void ) {
5
6
long int aa = 0 ;
Original file line number Diff line number Diff line change 1
1
// RUN: %libomptarget-compilexx-and-run-generic
2
+ // RUN: %libomptarget-compileoptxx-and-run-generic
2
3
3
4
#include < cassert>
4
5
#include < iostream>
Original file line number Diff line number Diff line change 1
- // RUN: %libomptarget-compile-generic && env OMP_MAX_ACTIVE_LEVELS=2 %libomptarget-run-generic | %fcheck-generic -allow-empty
1
+ // RUN: %libomptarget-compile-generic && \
2
+ // RUN: env OMP_MAX_ACTIVE_LEVELS=2 %libomptarget-run-generic | \
3
+ // RUN: %fcheck-generic -allow-empty
4
+ // RUN: %libomptarget-compileopt-generic && \
5
+ // RUN: env OMP_MAX_ACTIVE_LEVELS=2 %libomptarget-run-generic | \
6
+ // RUN: %fcheck-generic -allow-empty
2
7
3
8
#include <assert.h>
4
9
#include <omp.h>
Original file line number Diff line number Diff line change 1
- // RUN: %libomptarget-compile-generic -DSHARED -fPIC -shared -o %t.so && %libomptarget-compile-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic
1
+ // RUN: %libomptarget-compile-generic -DSHARED -fPIC -shared -o %t.so && \
2
+ // RUN: %libomptarget-compile-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic
3
+ // RUN: %libomptarget-compileopt-generic -DSHARED -fPIC -shared -o %t.so && \
4
+ // RUN: %libomptarget-compileopt-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic
2
5
3
6
#ifdef SHARED
4
7
void foo () {}
Original file line number Diff line number Diff line change 1
1
// RUN: %libomptarget-compilexx-and-run-generic
2
-
3
- // UNSUPPORTED: amdgcn-amd-amdhsa
2
+ // RUN: %libomptarget-compileoptxx-and-run-generic
4
3
5
4
#include < cassert>
6
5
You can’t perform that action at this time.
0 commit comments