Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion offload/test/offloading/mandatory_but_no_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,47 @@
// device. This behavior is proposed for OpenMP 5.2 in OpenMP spec github
// issue 2669.

// AMD Tests
// RUN: %libomptarget-compile-amdgcn-amd-amdhsa -DDIR=target
// RUN: env OMP_TARGET_OFFLOAD=mandatory ROCR_VISIBLE_DEVICES= \
// RUN: %libomptarget-run-fail-amdgcn-amd-amdhsa 2>&1 | \
// RUN: %fcheck-amdgcn-amd-amdhsa

// RUN: %libomptarget-compile-amdgcn-amd-amdhsa -DDIR='target teams'
// RUN: env OMP_TARGET_OFFLOAD=mandatory ROCR_VISIBLE_DEVICES= \
// RUN: %libomptarget-run-fail-amdgcn-amd-amdhsa 2>&1 | \
// RUN: %fcheck-amdgcn-amd-amdhsa

// RUN: %libomptarget-compile-amdgcn-amd-amdhsa -DDIR='target data map(X)'
// RUN: env OMP_TARGET_OFFLOAD=mandatory ROCR_VISIBLE_DEVICES= \
// RUN: %libomptarget-run-fail-amdgcn-amd-amdhsa 2>&1 | \
// RUN: %fcheck-amdgcn-amd-amdhsa

// RUN: %libomptarget-compile-amdgcn-amd-amdhsa \
// RUN: -DDIR='target enter data map(to:X)'
// RUN: env OMP_TARGET_OFFLOAD=mandatory ROCR_VISIBLE_DEVICES= \
// RUN: %libomptarget-run-fail-amdgcn-amd-amdhsa 2>&1 | \
// RUN: %fcheck-amdgcn-amd-amdhsa

// RUN: %libomptarget-compile-amdgcn-amd-amdhsa \
// RUN: -DDIR='target exit data map(from:X)'
// RUN: env OMP_TARGET_OFFLOAD=mandatory ROCR_VISIBLE_DEVICES= \
// RUN: %libomptarget-run-fail-amdgcn-amd-amdhsa 2>&1 | \
// RUN: %fcheck-amdgcn-amd-amdhsa

// RUN: %libomptarget-compile-amdgcn-amd-amdhsa \
// RUN: -DDIR='target update to(X)'
// RUN: env OMP_TARGET_OFFLOAD=mandatory ROCR_VISIBLE_DEVICES= \
// RUN: %libomptarget-run-fail-amdgcn-amd-amdhsa 2>&1 | \
// RUN: %fcheck-amdgcn-amd-amdhsa

// RUN: %libomptarget-compile-amdgcn-amd-amdhsa \
// RUN: -DDIR='target update from(X)'
// RUN: env OMP_TARGET_OFFLOAD=mandatory ROCR_VISIBLE_DEVICES= \
// RUN: %libomptarget-run-fail-amdgcn-amd-amdhsa 2>&1 | \
// RUN: %fcheck-amdgcn-amd-amdhsa

// Nvidia Tests
// RUN: %libomptarget-compile-nvptx64-nvidia-cuda -DDIR=target
// RUN: env OMP_TARGET_OFFLOAD=mandatory CUDA_VISIBLE_DEVICES= \
// RUN: %libomptarget-run-fail-nvptx64-nvidia-cuda 2>&1 | \
Expand Down Expand Up @@ -42,7 +83,6 @@
// RUN: %libomptarget-run-fail-nvptx64-nvidia-cuda 2>&1 | \
// RUN: %fcheck-nvptx64-nvidia-cuda

// REQUIRES: nvptx64-nvidia-cuda

#include <omp.h>
#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion offload/test/offloading/memory_manager.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %libomptarget-compilexx-run-and-check-generic

// REQUIRES: nvidiagpu

#include <omp.h>

Expand Down
Loading