未验证 提交 36ec9d2f 编写于 作者: L lishicheng1996 提交者: GitHub

Expose capi in MacOS to enable GPU computing as custom device (#52589)

上级 cbe8e6e9
......@@ -13,7 +13,7 @@
// limitations under the License.
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include "paddle/phi/capi/include/c_data_type.h"
#include "paddle/phi/capi/include/c_device_context.h"
......
......@@ -13,7 +13,7 @@
// limitations under the License.
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include "paddle/phi/capi/include/common.h"
......
......@@ -14,8 +14,7 @@
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include <cstdint>
#include "paddle/phi/backends/device_ext.h"
......
......@@ -14,7 +14,7 @@
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include "paddle/phi/capi/include/c_data_type.h"
#include "paddle/phi/capi/include/c_tensor.h"
......
......@@ -14,7 +14,7 @@
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include "paddle/phi/capi/include/c_data_type.h"
......
......@@ -14,7 +14,7 @@
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include "paddle/phi/capi/include/c_data_type.h"
#include "paddle/phi/capi/include/c_device_context.h"
......
......@@ -14,7 +14,7 @@
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include "paddle/phi/capi/include/c_data_type.h"
......
......@@ -14,7 +14,7 @@
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include <vector>
......
......@@ -14,7 +14,7 @@
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include "paddle/phi/capi/include/c_data_type.h"
......
......@@ -14,7 +14,7 @@
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include "paddle/phi/capi/include/c_data_type.h"
......
......@@ -14,7 +14,7 @@
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include "paddle/phi/capi/include/c_data_type.h"
......
......@@ -13,7 +13,9 @@
// limitations under the License.
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include <type_traits>
#define PD_CUSTOM_PHI_KERNEL_STATIC_ASSERT_GLOBAL_NAMESPACE(uniq_name, msg) \
_PD_CUSTOM_PHI_KERNEL_STATIC_ASSERT_GLOBAL_NAMESPACE(uniq_name, msg)
......
......@@ -14,7 +14,7 @@
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include "paddle/phi/capi/include/c_data_type.h"
......
......@@ -13,7 +13,7 @@
// limitations under the License.
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include "paddle/phi/capi/include/wrapper_base.h"
......
......@@ -16,7 +16,7 @@
#include "paddle/phi/capi/include/common.h"
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
namespace phi {
namespace capi {
......
......@@ -13,7 +13,7 @@
// limitations under the License.
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include "paddle/phi/capi/include/c_data_type.h"
#include "paddle/phi/common/data_type.h"
......
......@@ -14,7 +14,7 @@
#pragma once
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32)
#include <memory>
#include <tuple>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册