Skip to content

Commit

Permalink
compile fix for CentOS 6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
svenwoop committed Oct 26, 2015
1 parent 5de0420 commit cc75cca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kernels/xeon/bvh/bvh_builder_sah.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ namespace embree
return;
}

double t0 = bvh->preBuild(mesh ? "" : TOSTRING(isa) "::BVH" + std::to_string(N) + "BuilderSAH");
double t0 = bvh->preBuild(mesh ? "" : TOSTRING(isa) "::BVH" + std::to_string((long long)N) + "BuilderSAH");

/* create primref array */
const size_t numSplitPrimitives = max(numPrimitives,size_t(presplitFactor*numPrimitives));
Expand Down Expand Up @@ -222,7 +222,7 @@ namespace embree
return;
}

double t0 = bvh->preBuild(TOSTRING(isa) "::BVH" + std::to_string(N) + "BuilderSpatialSAH");
double t0 = bvh->preBuild(TOSTRING(isa) "::BVH" + std::to_string((long long)N) + "BuilderSpatialSAH");

/* create primref list */
PrimRefList prims;
Expand Down Expand Up @@ -358,7 +358,7 @@ namespace embree
return;
}

double t0 = bvh->preBuild(mesh ? "" : TOSTRING(isa) "::BVH" + std::to_string(N) + "BuilderMblurSAH");
double t0 = bvh->preBuild(mesh ? "" : TOSTRING(isa) "::BVH" + std::to_string((long long)N) + "BuilderMblurSAH");

//bvh->alloc.init_estimate(numPrimitives*sizeof(PrimRef));
prims.resize(numPrimitives);
Expand Down Expand Up @@ -429,7 +429,7 @@ namespace embree
}


double t0 = bvh->preBuild(mesh ? "" : TOSTRING(isa) "::BVH" + std::to_string(N) + "BuilderSAH");
double t0 = bvh->preBuild(mesh ? "" : TOSTRING(isa) "::BVH" + std::to_string((long long)N) + "BuilderSAH");

#if PROFILE
profile(2,20,numOriginalPrimitives,[&] (ProfileTimer& timer) {
Expand Down

0 comments on commit cc75cca

Please sign in to comment.