Loading debian/patches/fast_opencl_header_dir_move.patch 0 → 100644 +42 −0 Original line number Diff line number Diff line Description: move OpenCL.hpp written for FAST into FAST source Move this FAST opencl header into the FAST directory as this header should not be written into opencl package header directory. Author: Shayan Doust <hello@shayandoust.me> Last-Update: 2019-08-19 --- Index: fast/source/CL/OpenCL.hpp =================================================================== --- fast.orig/source/CL/OpenCL.hpp 2019-08-19 23:55:24.000000000 +0100 +++ /dev/null 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -#ifndef OPENCL_HPP_ -#define OPENCL_HPP_ - -#define CL_HPP_ENABLE_EXCEPTIONS -#define CL_HPP_TARGET_OPENCL_VERSION 120 -#define CL_HPP_MINIMUM_OPENCL_VERSION 120 -#define CL_HPP_ENABLE_SIZE_T_COMPATIBILITY -#define CL_HPP_ENABLE_PROGRAM_CONSTRUCTION_FROM_ARRAY_COMPATIBILITY -#include "CL/cl2.hpp" - - - -#endif /* OPENCL_HPP_ */ Index: fast/source/FAST/OpenCL.hpp =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ fast/source/FAST/OpenCL.hpp 2019-08-19 23:55:24.000000000 +0100 @@ -0,0 +1,13 @@ +#ifndef OPENCL_HPP_ +#define OPENCL_HPP_ + +#define CL_HPP_ENABLE_EXCEPTIONS +#define CL_HPP_TARGET_OPENCL_VERSION 120 +#define CL_HPP_MINIMUM_OPENCL_VERSION 120 +#define CL_HPP_ENABLE_SIZE_T_COMPATIBILITY +#define CL_HPP_ENABLE_PROGRAM_CONSTRUCTION_FROM_ARRAY_COMPATIBILITY +#include "CL/cl2.hpp" + + + +#endif /* OPENCL_HPP_ */ debian/patches/opencl_header.patch 0 → 100644 +78 −0 Original line number Diff line number Diff line Description: modify fast headers to use moved opencl header As the OpenCL.hpp file has been moved out of CL and instead placed in FAST, this patch modifies some FAST headers relying on this OpenCL.hpp file to use a different directory. Author: Shayan Doust <hello@shayandoust.me> Last-Update: 2019-08-20 --- Index: fast/source/FAST/Data/Access/MeshOpenCLAccess.hpp =================================================================== --- fast.orig/source/FAST/Data/Access/MeshOpenCLAccess.hpp 2019-08-20 01:32:31.328373455 +0100 +++ fast/source/FAST/Data/Access/MeshOpenCLAccess.hpp 2019-08-20 01:32:31.324373422 +0100 @@ -1,7 +1,7 @@ #ifndef MESH_OPENCL_ACCESS_HPP_ #define MESH_OPENCL_ACCESS_HPP_ -#include "CL/OpenCL.hpp" +#include "FAST/OpenCL.hpp" #include "FAST/Object.hpp" @@ -30,4 +30,4 @@ } -#endif \ No newline at end of file +#endif Index: fast/source/FAST/Data/Access/OpenCLBufferAccess.hpp =================================================================== --- fast.orig/source/FAST/Data/Access/OpenCLBufferAccess.hpp 2019-08-20 01:32:31.328373455 +0100 +++ fast/source/FAST/Data/Access/OpenCLBufferAccess.hpp 2019-08-20 01:32:31.324373422 +0100 @@ -1,7 +1,7 @@ #ifndef OPENCLBUFFERACCESS_HPP_ #define OPENCLBUFFERACCESS_HPP_ -#include "CL/OpenCL.hpp" +#include "FAST/OpenCL.hpp" #include "FAST/Object.hpp" Index: fast/source/FAST/Data/Access/OpenCLImageAccess.hpp =================================================================== --- fast.orig/source/FAST/Data/Access/OpenCLImageAccess.hpp 2019-08-20 01:32:31.328373455 +0100 +++ fast/source/FAST/Data/Access/OpenCLImageAccess.hpp 2019-08-20 01:32:31.324373422 +0100 @@ -1,7 +1,7 @@ #ifndef OPENCLIMAGEACCESS_HPP_ #define OPENCLIMAGEACCESS_HPP_ -#include "CL/OpenCL.hpp" +#include "FAST/OpenCL.hpp" #include "Access.hpp" #include "FAST/Object.hpp" Index: fast/source/FAST/Data/DataTypes.hpp =================================================================== --- fast.orig/source/FAST/Data/DataTypes.hpp 2019-08-20 01:32:31.328373455 +0100 +++ fast/source/FAST/Data/DataTypes.hpp 2019-08-20 01:32:31.324373422 +0100 @@ -5,7 +5,7 @@ #define _USE_MATH_DEFINES #include <cmath> #include "FAST/Exception.hpp" -#include "CL/OpenCL.hpp" +#include "FAST/OpenCL.hpp" #include "FAST/ExecutionDevice.hpp" #include <iostream> #include <Eigen/Dense> Index: fast/source/FAST/RuntimeMeasurementManager.hpp =================================================================== --- fast.orig/source/FAST/RuntimeMeasurementManager.hpp 2019-08-20 01:32:31.328373455 +0100 +++ fast/source/FAST/RuntimeMeasurementManager.hpp 2019-08-20 01:32:31.324373422 +0100 @@ -3,7 +3,7 @@ #include <string> #include <map> -#include "CL/OpenCL.hpp" +#include "FAST/OpenCL.hpp" #include "RuntimeMeasurement.hpp" #include <chrono> #include <memory> debian/patches/series +2 −0 Original line number Diff line number Diff line opencl_header.patch fix_source_openigtlink.patch prevent_cmake_downloading.patch remove_unneeded_installs.patch modify_libs_and_output.patch set_cmake_options.patch fast_opencl_header_dir_move.patch Loading
debian/patches/fast_opencl_header_dir_move.patch 0 → 100644 +42 −0 Original line number Diff line number Diff line Description: move OpenCL.hpp written for FAST into FAST source Move this FAST opencl header into the FAST directory as this header should not be written into opencl package header directory. Author: Shayan Doust <hello@shayandoust.me> Last-Update: 2019-08-19 --- Index: fast/source/CL/OpenCL.hpp =================================================================== --- fast.orig/source/CL/OpenCL.hpp 2019-08-19 23:55:24.000000000 +0100 +++ /dev/null 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -#ifndef OPENCL_HPP_ -#define OPENCL_HPP_ - -#define CL_HPP_ENABLE_EXCEPTIONS -#define CL_HPP_TARGET_OPENCL_VERSION 120 -#define CL_HPP_MINIMUM_OPENCL_VERSION 120 -#define CL_HPP_ENABLE_SIZE_T_COMPATIBILITY -#define CL_HPP_ENABLE_PROGRAM_CONSTRUCTION_FROM_ARRAY_COMPATIBILITY -#include "CL/cl2.hpp" - - - -#endif /* OPENCL_HPP_ */ Index: fast/source/FAST/OpenCL.hpp =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ fast/source/FAST/OpenCL.hpp 2019-08-19 23:55:24.000000000 +0100 @@ -0,0 +1,13 @@ +#ifndef OPENCL_HPP_ +#define OPENCL_HPP_ + +#define CL_HPP_ENABLE_EXCEPTIONS +#define CL_HPP_TARGET_OPENCL_VERSION 120 +#define CL_HPP_MINIMUM_OPENCL_VERSION 120 +#define CL_HPP_ENABLE_SIZE_T_COMPATIBILITY +#define CL_HPP_ENABLE_PROGRAM_CONSTRUCTION_FROM_ARRAY_COMPATIBILITY +#include "CL/cl2.hpp" + + + +#endif /* OPENCL_HPP_ */
debian/patches/opencl_header.patch 0 → 100644 +78 −0 Original line number Diff line number Diff line Description: modify fast headers to use moved opencl header As the OpenCL.hpp file has been moved out of CL and instead placed in FAST, this patch modifies some FAST headers relying on this OpenCL.hpp file to use a different directory. Author: Shayan Doust <hello@shayandoust.me> Last-Update: 2019-08-20 --- Index: fast/source/FAST/Data/Access/MeshOpenCLAccess.hpp =================================================================== --- fast.orig/source/FAST/Data/Access/MeshOpenCLAccess.hpp 2019-08-20 01:32:31.328373455 +0100 +++ fast/source/FAST/Data/Access/MeshOpenCLAccess.hpp 2019-08-20 01:32:31.324373422 +0100 @@ -1,7 +1,7 @@ #ifndef MESH_OPENCL_ACCESS_HPP_ #define MESH_OPENCL_ACCESS_HPP_ -#include "CL/OpenCL.hpp" +#include "FAST/OpenCL.hpp" #include "FAST/Object.hpp" @@ -30,4 +30,4 @@ } -#endif \ No newline at end of file +#endif Index: fast/source/FAST/Data/Access/OpenCLBufferAccess.hpp =================================================================== --- fast.orig/source/FAST/Data/Access/OpenCLBufferAccess.hpp 2019-08-20 01:32:31.328373455 +0100 +++ fast/source/FAST/Data/Access/OpenCLBufferAccess.hpp 2019-08-20 01:32:31.324373422 +0100 @@ -1,7 +1,7 @@ #ifndef OPENCLBUFFERACCESS_HPP_ #define OPENCLBUFFERACCESS_HPP_ -#include "CL/OpenCL.hpp" +#include "FAST/OpenCL.hpp" #include "FAST/Object.hpp" Index: fast/source/FAST/Data/Access/OpenCLImageAccess.hpp =================================================================== --- fast.orig/source/FAST/Data/Access/OpenCLImageAccess.hpp 2019-08-20 01:32:31.328373455 +0100 +++ fast/source/FAST/Data/Access/OpenCLImageAccess.hpp 2019-08-20 01:32:31.324373422 +0100 @@ -1,7 +1,7 @@ #ifndef OPENCLIMAGEACCESS_HPP_ #define OPENCLIMAGEACCESS_HPP_ -#include "CL/OpenCL.hpp" +#include "FAST/OpenCL.hpp" #include "Access.hpp" #include "FAST/Object.hpp" Index: fast/source/FAST/Data/DataTypes.hpp =================================================================== --- fast.orig/source/FAST/Data/DataTypes.hpp 2019-08-20 01:32:31.328373455 +0100 +++ fast/source/FAST/Data/DataTypes.hpp 2019-08-20 01:32:31.324373422 +0100 @@ -5,7 +5,7 @@ #define _USE_MATH_DEFINES #include <cmath> #include "FAST/Exception.hpp" -#include "CL/OpenCL.hpp" +#include "FAST/OpenCL.hpp" #include "FAST/ExecutionDevice.hpp" #include <iostream> #include <Eigen/Dense> Index: fast/source/FAST/RuntimeMeasurementManager.hpp =================================================================== --- fast.orig/source/FAST/RuntimeMeasurementManager.hpp 2019-08-20 01:32:31.328373455 +0100 +++ fast/source/FAST/RuntimeMeasurementManager.hpp 2019-08-20 01:32:31.324373422 +0100 @@ -3,7 +3,7 @@ #include <string> #include <map> -#include "CL/OpenCL.hpp" +#include "FAST/OpenCL.hpp" #include "RuntimeMeasurement.hpp" #include <chrono> #include <memory>
debian/patches/series +2 −0 Original line number Diff line number Diff line opencl_header.patch fix_source_openigtlink.patch prevent_cmake_downloading.patch remove_unneeded_installs.patch modify_libs_and_output.patch set_cmake_options.patch fast_opencl_header_dir_move.patch