Commit 50963290 authored by Abhishek Yenpure's avatar Abhishek Yenpure

Moving BoundingIntervalHierarchy.cxx to device sources

Rectifying print statements in the unit test
parent bf224dbb
......@@ -115,7 +115,6 @@ set(template_sources
set(sources
ArrayHandle.cxx
AssignerMultiBlock.cxx
BoundingIntervalHierarchy.cxx
BoundsCompute.cxx
BoundsGlobalCompute.cxx
CellSet.cxx
......@@ -136,6 +135,7 @@ set(sources
# compiled with a device-specific compiler (like CUDA).
set(device_sources
ArrayRangeCompute.cxx
BoundingIntervalHierarchy.cxx
CellSetExplicit.cxx
ColorTable.cxx
CoordinateSystem.cxx
......
......@@ -76,10 +76,12 @@ void TestBoundingIntervalHierarchy(vtkm::cont::DataSet dataSet, vtkm::IdComponen
vtkm::cont::ArrayHandleVirtualCoordinates vertices = dataSet.GetCoordinateSystem().GetData();
std::cout << "Using numPlanes: " << numPlanes << "\n";
std::cout << "Building Bounding Interval Hierarchy Tree" << std::endl;
vtkm::cont::BoundingIntervalHierarchy bih = vtkm::cont::BoundingIntervalHierarchy(numPlanes, 5);
bih.SetCellSet(cellSet);
bih.SetCoordinates(dataSet.GetCoordinateSystem());
bih.Update();
std::cout << "Built Bounding Interval Hierarchy Tree" << std::endl;
Timer centroidsTimer;
vtkm::cont::ArrayHandle<vtkm::Vec<vtkm::FloatDefault, 3>> centroids;
......@@ -96,7 +98,7 @@ void TestBoundingIntervalHierarchy(vtkm::cont::DataSet dataSet, vtkm::IdComponen
size_t stackSizeBackup;
cudaDeviceGetLimit(&stackSizeBackup, cudaLimitStackSize);
std::cout << "Default stack size" << stackSizeBackup << "\n";
std::cout << "Default stack size " << stackSizeBackup << "\n";
cudaDeviceSetLimit(cudaLimitStackSize, 1024 * 50);
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment