Skip to content

Commit ec485c0

Browse files
freibolddopitz
authored andcommitted
cleanups
1 parent d31a716 commit ec485c0

7 files changed

+4
-21
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ kernels/config.h
99
kernels/hash.h
1010
include/embree4/rtcore_config.h
1111
build
12+
build*
1213
out

kernels/common/buffer.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ namespace embree
3535
device->refInc();
3636

3737
ptr = alloc(ptr_in, shared, EmbreeMemoryType::SHARED);
38-
3938
#if defined(EMBREE_SYCL_SUPPORT)
4039
dshared = true;
4140
dptr = ptr;
@@ -57,14 +56,11 @@ namespace embree
5756
#endif
5857
{
5958
ptr = alloc(ptr_in, shared, EmbreeMemoryType::SHARED);
60-
}
61-
6259
#if defined(EMBREE_SYCL_SUPPORT)
63-
if (!dptr) {
6460
dshared = true;
6561
dptr = ptr;
66-
}
6762
#endif
63+
}
6864
}
6965

7066
/*! Buffer destruction */

kernels/common/scene_instance.h

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ namespace embree
1313
/*! Instanced acceleration structure */
1414
struct Instance : public Geometry
1515
{
16-
//ALIGNED_STRUCT_(16);
1716
static const Geometry::GTypeMask geom_type = Geometry::MTY_INSTANCE;
1817

1918
public:

kernels/common/scene_instance_array.h

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ namespace embree
1313
/*! Instanced acceleration structure */
1414
struct InstanceArray : public Geometry
1515
{
16-
//ALIGNED_STRUCT_(16);
1716
static const Geometry::GTypeMask geom_type = Geometry::MTY_INSTANCE_ARRAY;
1817

1918
public:

kernels/common/scene_line_segments.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ namespace embree
224224
flags[i] |= hasRight * RTC_CURVE_FLAG_NEIGHBOR_RIGHT;
225225
hasLeft = hasRight;
226226
}
227-
std::cout << "flags.buffer->commit()" << std::endl;
228227
flags.buffer->commit();
229228
}
230229
segments.clearLocalModified();

kernels/sycl/rthwif_embree.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,6 @@ __forceinline void trav_loop(intel_ray_query_t& query, Ray& ray, Scene* scene, s
650650

651651
SYCL_EXTERNAL __attribute__((always_inline)) void rtcIntersectRTHW(sycl::global_ptr<RTCTraversableTy> htraversable, sycl::private_ptr<RTCRayQueryContext> ucontext, sycl::private_ptr<RTCRayHit> rayhit_i, sycl::private_ptr<RTCIntersectArguments> args)
652652
{
653-
#if 0
654653
Scene* scene = (Scene*) htraversable.get();
655654

656655
RayQueryContext context(scene, ucontext, args);
@@ -763,12 +762,10 @@ SYCL_EXTERNAL __attribute__((always_inline)) void rtcIntersectRTHW(sycl::global_
763762
}
764763

765764
intel_ray_query_abandon(query);
766-
#endif
767765
}
768766

769767
SYCL_EXTERNAL __attribute__((always_inline)) void rtcOccludedRTHW(sycl::global_ptr<RTCTraversableTy> htraversable, sycl::private_ptr<RTCRayQueryContext> ucontext, sycl::private_ptr<RTCRay> ray_i, sycl::private_ptr<RTCOccludedArguments> args)
770768
{
771-
#if 0
772769
Scene* scene = (Scene*) htraversable.get();
773770

774771
RayQueryContext context(scene, ucontext, args);
@@ -817,7 +814,6 @@ SYCL_EXTERNAL __attribute__((always_inline)) void rtcOccludedRTHW(sycl::global_p
817814
ray_i->tfar = -INFINITY;
818815

819816
intel_ray_query_abandon(query);
820-
#endif
821817
}
822818

823819
RTC_NAMESPACE_END;

kernels/sycl/rthwif_embree_builder.cpp

+2-9
Original file line numberDiff line numberDiff line change
@@ -705,15 +705,12 @@ namespace embree
705705
return;
706706
}
707707

708-
std::cout << "accelBufferHost.size(): " << accelBufferHost.size() << std::endl;
709-
std::cout << "accelBufferDevice.size(): " << accelBufferDevice.size() << std::endl;
710-
711708
accelBufferDevice.resize(accelBufferHost.size());
712-
709+
713710
sycl::queue queue(deviceGPU->getGPUDevice());
714711
queue.memcpy(accelBufferDevice.data(), accelBufferHost.data(), accelBufferHost.size());
715712
queue.wait_and_throw();
716-
713+
717714
std::vector<char> host_data(accelBufferHost.size());
718715
queue.memcpy(host_data.data(), accelBufferDevice.data(), accelBufferDevice.size());
719716
queue.wait_and_throw();
@@ -724,11 +721,7 @@ namespace embree
724721
}
725722
}
726723

727-
std::cout << "accelBufferHost.size(): " << accelBufferHost.size() << std::endl;
728-
std::cout << "accelBufferDevice.size(): " << accelBufferDevice.size() << std::endl;
729-
730724
hwaccel = (char*)accelBufferDevice.data();
731-
printf("hwaccel %p\n", hwaccel);
732725
}
733726

734727
}

0 commit comments

Comments
 (0)