Skip to content

Commit

Permalink
[WIP] geometry data works
Browse files Browse the repository at this point in the history
  • Loading branch information
freibold committed Oct 28, 2024
1 parent 82f0d25 commit 418ecd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/cmake/dpcpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ IF (EMBREE_SYCL_SUPPORT)
SET(CMAKE_CXX_FLAGS_SYCL "${CMAKE_CXX_FLAGS_SYCL} /debug:none") # FIXME: debug information generation takes forever in SYCL
SET(CMAKE_CXX_FLAGS_SYCL "${CMAKE_CXX_FLAGS_SYCL} /DNDEBUG") # FIXME: debug information generation takes forever in SYCL
ELSE()
SET(CMAKE_CXX_FLAGS_SYCL "${CMAKE_CXX_FLAGS_SYCL} -g") # FIXME: debug information generation takes forever in SYCL
SET(CMAKE_CXX_FLAGS_SYCL "${CMAKE_CXX_FLAGS_SYCL} -g0") # FIXME: debug information generation takes forever in SYCL
SET(CMAKE_CXX_FLAGS_SYCL "${CMAKE_CXX_FLAGS_SYCL} -UDEBUG -DNDEBUG") # FIXME: assertion still not working in SYCL
ENDIF()

Expand Down
4 changes: 4 additions & 0 deletions kernels/common/scene_grid_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ namespace embree
return 16 * ((byte_size + 15) / 16);
}

#if defined(EMBREE_SYCL_SUPPORT)

void GridMesh::convertToDeviceRepresentation(size_t offset, char* data_host, char* data_device) const {
GridMesh* mesh = (GridMesh*)(data_host + offset);
std::memcpy(data_host + offset, (void*)this, sizeof(GridMesh));
Expand Down Expand Up @@ -241,6 +243,8 @@ namespace embree
mesh->quadID_to_primID_xy.setDataPtr((PrimID_XY*)(data_device + offset));
}

#endif

#endif

namespace isa
Expand Down

0 comments on commit 418ecd7

Please sign in to comment.