Skip to content

Commit 2914015

Browse files
committed
Buffers set_final_data
1 parent b77ceac commit 2914015

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ find_package(SDL2 REQUIRED)
1212
include_directories(${SDL2_INCLUDE_DIRS})
1313

1414
add_executable(crowdsim src/main.cpp)
15-
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl -fsycl-targets=spir64-gen -fgpu-inline-threshold=100000")
15+
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl -fsycl-targets=spir64-gen")
1616

1717
add_subdirectory(external)
1818

src/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ int main(int argc, char *argv[]) {
195195
auto actorBuf = sycl::buffer<Actor>(actors.data(), actors.size());
196196
auto walls = room.getWalls();
197197
auto wallsBuf = sycl::buffer<std::array<vecType, 2>>(walls.data(), walls.size());
198+
wallsBuf.set_final_data(nullptr);
198199
auto pathsBuf = sycl::buffer<Path>(paths.data(), paths.size());
200+
pathsBuf.set_final_data(nullptr);
199201

200202
int delayCounter = 0;
201203
int updateBBoxCounter = 0;

0 commit comments

Comments
 (0)