Skip to content

Commit 3677167

Browse files
authored
Initial rework of the vector-add sample (#1134)
* initial commit Signed-off-by: Yohann Uguen <[email protected]> * edit readme and build/run files Signed-off-by: Yohann Uguen <[email protected]> * remove makefiles Signed-off-by: Yohann Uguen <[email protected]> * edit the sample.json Signed-off-by: Yohann Uguen <[email protected]> * remove sh files Signed-off-by: Yohann Uguen <[email protected]> * reverting README.md Signed-off-by: Yohann Uguen <[email protected]> Signed-off-by: Yohann Uguen <[email protected]>
1 parent be7fe8a commit 3677167

File tree

13 files changed

+230
-276
lines changed

13 files changed

+230
-276
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
if(UNIX)
2+
# Direct CMake to use dpcpp rather than the default C++ compiler/linker
3+
set(CMAKE_CXX_COMPILER dpcpp)
4+
else() # Windows
5+
# Force CMake to use dpcpp rather than the default C++ compiler/linker
6+
# (needed on Windows only)
7+
include (CMakeForceCompiler)
8+
CMAKE_FORCE_CXX_COMPILER (dpcpp IntelDPCPP)
9+
include (Platform/Windows-Clang)
10+
endif()
11+
12+
cmake_minimum_required (VERSION 3.4)
13+
14+
project(VectorAdd CXX)
15+
16+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
17+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
18+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
19+
20+
add_subdirectory (src)

DirectProgramming/DPC++/DenseLinearAlgebra/vector-add/Makefile

Lines changed: 0 additions & 25 deletions
This file was deleted.

DirectProgramming/DPC++/DenseLinearAlgebra/vector-add/Makefile.fpga

Lines changed: 0 additions & 52 deletions
This file was deleted.

DirectProgramming/DPC++/DenseLinearAlgebra/vector-add/Makefile.win

Lines changed: 0 additions & 25 deletions
This file was deleted.

DirectProgramming/DPC++/DenseLinearAlgebra/vector-add/Makefile.win.fpga

Lines changed: 0 additions & 22 deletions
This file was deleted.

DirectProgramming/DPC++/DenseLinearAlgebra/vector-add/build.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

DirectProgramming/DPC++/DenseLinearAlgebra/vector-add/build_fpga.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

DirectProgramming/DPC++/DenseLinearAlgebra/vector-add/build_fpga_emu.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

DirectProgramming/DPC++/DenseLinearAlgebra/vector-add/run.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

DirectProgramming/DPC++/DenseLinearAlgebra/vector-add/run_fpga.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)