-
Notifications
You must be signed in to change notification settings - Fork 795
[SYCL][PI] Move files to libpi folder #3679
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//==---------------- pi_sycl.hpp - SYCL wrapper for PI ---------*- C++ -*---==// | ||
// | ||
// 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 | ||
// | ||
// ===--------------------------------------------------------------------=== // | ||
|
||
#pragma once | ||
|
||
#include <CL/sycl/detail/defines.hpp> | ||
#include <pi/pi.hpp> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure I understand the motivation to have this wrapper. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add_subdirectory(libpi/plugins) |
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -97,9 +97,10 @@ target_include_directories(LevelZeroLoader-Headers | |||||||
|
||||||||
|
||||||||
include_directories("${sycl_inc_dir}") | ||||||||
include_directories("${pi_include_dir}") | ||||||||
Comment on lines
99
to
+100
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
add_library(pi_level_zero SHARED | ||||||||
"${sycl_inc_dir}/CL/sycl/detail/pi.h" | ||||||||
"${pi_include_dir}/pi/pi.h" | ||||||||
"${CMAKE_CURRENT_SOURCE_DIR}/pi_level_zero.cpp" | ||||||||
"${CMAKE_CURRENT_SOURCE_DIR}/pi_level_zero.hpp" | ||||||||
"${CMAKE_CURRENT_SOURCE_DIR}/usm_allocator.cpp" | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a pity that we had to include
pi.h
here to usePI_INVALID_VALUE
in the function that has no dependency on plug-in interface.@romanovvlad, @smaslov-intel, I think there should be PI-independent error codes to report errors for cases like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such error codes getting introduced in SYCL2020