Skip to content

Include cl_ext.h instead of deprecated cl_ext_intel.h #67

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

Merged
merged 2 commits into from
Jan 25, 2022
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
2 changes: 1 addition & 1 deletion include/acl.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <string>
#include <vector>

#include <CL/cl_ext_intel.h>
#include <CL/cl_ext.h>

#include "acl_visibility.h"

Expand Down
1 change: 0 additions & 1 deletion include/acl_svm.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#ifndef ACL_SVM_H
#define ACL_SVM_H

#include <CL/cl_ext.h>
#include <CL/opencl.h>

#include "acl_types.h"
Expand Down
2 changes: 0 additions & 2 deletions include/acl_usm.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#ifndef ACL_USM_H
#define ACL_USM_H

#include <CL/cl_ext.h>
#include <CL/cl_ext_intel.h>
#include <CL/opencl.h>

#include "acl_types.h"
Expand Down
1 change: 0 additions & 1 deletion src/acl_icd_dispatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <string.h>

// External library headers.
#include <CL/cl_ext_intel.h>
#include <CL/cl_ext_intelfpga.h>
#include <CL/opencl.h>

Expand Down
2 changes: 0 additions & 2 deletions src/acl_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#include <vector>

// External library headers.
#include <CL/cl_ext.h>
#include <CL/cl_ext_intel.h>
#include <CL/opencl.h>
#include <acl_hash/acl_hash.h>
#include <acl_threadsupport/acl_threadsupport.h>
Expand Down
1 change: 0 additions & 1 deletion src/acl_usm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <unordered_set>

// External library headers.
#include <CL/cl_ext_intel.h>
#include <CL/opencl.h>

// Internal headers.
Expand Down
6 changes: 6 additions & 0 deletions test/fake_bsp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
add_library(fakegoodbsp SHARED fakegoodbsp.cpp)
target_include_directories(fakegoodbsp PRIVATE "${CMAKE_SOURCE_DIR}/src")
target_link_libraries(fakegoodbsp PRIVATE acl_headers CppUTest test_acl_test_header)
target_compile_definitions(fakegoodbsp PRIVATE
CL_TARGET_OPENCL_VERSION=300
)
if(WIN32)
target_compile_definitions(fakegoodbsp PRIVATE AOCL_MMD_CALL=__declspec\(dllexport\))
endif()

add_library(missingfuncbsp SHARED missingfuncbsp.cpp)
target_include_directories(missingfuncbsp PRIVATE "${CMAKE_SOURCE_DIR}/src")
target_link_libraries(missingfuncbsp PRIVATE acl_headers CppUTest test_acl_test_header)
target_compile_definitions(missingfuncbsp PRIVATE
CL_TARGET_OPENCL_VERSION=300
)
if(WIN32)
target_compile_definitions(missingfuncbsp PRIVATE AOCL_MMD_CALL=__declspec\(dllexport\))
endif()