Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL][CUDA] Implement Intel USM extension #1241

Merged
merged 3 commits into from
Mar 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
456 changes: 453 additions & 3 deletions sycl/plugins/cuda/pi_cuda.cpp

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion sycl/test/usm/allocator_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

//==---- allocator_vector.cpp - Allocator Container test -------------------==//
//
Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/allocator_vector_fail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

//==-- allocator_vector_fail.cpp - Device Memory Allocator fail test -------==//
//
Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/allocatorll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

//==---- allocatorll.cpp - Device Memory Linked List Allocator test --------==//
//
Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/badmalloc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// RUN: %GPU_RUN_PLACEHOLDER %t1.out

// UNSUPPORTED: windows
// XFAIL: cuda

//==----------------- badmalloc.cpp - Bad Mallocs test ---------------------==//
//
Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/depends_on.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

//==----------------- depends_on.cpp - depends_on test ---------------------==//
//
Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/dmemll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

//==------------------- dmemll.cpp - Device Memory Linked List test --------==//
//
Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/dmemllaligned.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

//==---- dmemllaligned.cpp - Aligned Device Memory Linked List test --------==//
//
Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/hmemll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

//==------------------- hmemll.cpp - Host Memory Linked List test ----------==//
//
Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/hmemllaligned.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

//==---- hmemllaligned.cpp - Aligned Host Memory Linked List test ----------==//
//
Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/memadvise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

//==---------------- memadvise.cpp - Shared Memory Linked List test --------==//
//
Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/memcpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// RUN: %clangxx -fsycl %s -o %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

#include <CL/sycl.hpp>

Expand Down
8 changes: 4 additions & 4 deletions sycl/test/usm/memset.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// RUN: %clangxx -fsycl %s -o %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out

//==---- memset.cpp - USM memset test --------------------------------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// RUN: %clangxx -fsycl %s -o %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

#include <CL/sycl.hpp>

Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/mixed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

//==------------------- mixed.cpp - Mixed Memory test ---------------------==//
//
Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/mixed2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

//==------------------- mixed2.cpp - Mixed Memory test ---------------------==//
//
Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/mixed_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

//==-------------- mixed_queue.cpp - Mixed Memory test ---------------------==//
//
Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/smemll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

//==------------------- smemll.cpp - Shared Memory Linked List test --------==//
//
Expand Down
1 change: 0 additions & 1 deletion sycl/test/usm/smemllaligned.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// XFAIL: cuda

//==---- smemllaligned.cpp - Aligned Shared Memory Linked List test --------==//
//
Expand Down