Comments (6)
Hi, Thanks for picking up my previous porting and used the same approach to get Embree3 running on ARM.
I've just built embree-aarch64 on a aarch64 server (Cortex A72, 2GHz) with GCC 9.2 and can't reproduce this behavior. My server took 1.5 minutes to compile the file. This might be a cross compiling issue or have been fixed on GCC 9.2.
from embree-aarch64.
@marty1885 Thanks for testing with gcc 9.2! Its good to know that it took only 1.5 mins for compiling with gcc 9.2 on native aarch64. We'd recommend to use recent gcc(and use native compilation as much as possible).
from embree-aarch64.
We've confirmed issue still happens in recent embree code, and things looks getting worse(e.g. gcc-10 does not finish compilation after 30 mins on Jetson AGX)
The issue would be a lot of templated code in a single file.
Splitting implementations to several .cpp files would solve the issue.
For example, reducing template instantiations like this makes compilation faster(~ 1 mins)
VirtualCurveIntersector* VirtualCurveIntersector4i()
{
static VirtualCurveIntersector function_local_static_prim;
function_local_static_prim.vtbl[Geometry::GTY_SPHERE_POINT] = SphereNiIntersectors<4>();
//function_local_static_prim.vtbl[Geometry::GTY_DISC_POINT] = DiscNiIntersectors<4>();
//function_local_static_prim.vtbl[Geometry::GTY_ORIENTED_DISC_POINT] = OrientedDiscNiIntersectors<4>();
//function_local_static_prim.vtbl[Geometry::GTY_ROUND_LINEAR_CURVE ] = LinearConeNiIntersectors<4>();
//function_local_static_prim.vtbl[Geometry::GTY_FLAT_LINEAR_CURVE ] = LinearRibbonNiIntersectors<4>();
//function_local_static_prim.vtbl[Geometry::GTY_ROUND_BEZIER_CURVE] = CurveNiIntersectors <BezierCurveT,4>();
//function_local_static_prim.vtbl[Geometry::GTY_FLAT_BEZIER_CURVE ] = RibbonNiIntersectors<BezierCurveT,4>();
//function_local_static_prim.vtbl[Geometry::GTY_ORIENTED_BEZIER_CURVE] = OrientedCurveNiIntersectors<BezierCurveT,4>();
//function_local_static_prim.vtbl[Geometry::GTY_ROUND_BSPLINE_CURVE] = CurveNiIntersectors <BSplineCurveT,4>();
//function_local_static_prim.vtbl[Geometry::GTY_FLAT_BSPLINE_CURVE ] = RibbonNiIntersectors<BSplineCurveT,4>();
//function_local_static_prim.vtbl[Geometry::GTY_ORIENTED_BSPLINE_CURVE] = OrientedCurveNiIntersectors<BSplineCurveT,4>();
//function_local_static_prim.vtbl[Geometry::GTY_ROUND_HERMITE_CURVE] = HermiteCurveNiIntersectors <HermiteCurveT,4>();
//function_local_static_prim.vtbl[Geometry::GTY_FLAT_HERMITE_CURVE ] = HermiteRibbonNiIntersectors<HermiteCurveT,4>();
//function_local_static_prim.vtbl[Geometry::GTY_ORIENTED_HERMITE_CURVE] = HermiteOrientedCurveNiIntersectors<HermiteCurveT,4>();
//function_local_static_prim.vtbl[Geometry::GTY_ROUND_CATMULL_ROM_CURVE] = CurveNiIntersectors <CatmullRomCurveT,4>();
//function_local_static_prim.vtbl[Geometry::GTY_FLAT_CATMULL_ROM_CURVE ] = RibbonNiIntersectors<CatmullRomCurveT,4>();
//function_local_static_prim.vtbl[Geometry::GTY_ORIENTED_CATMULL_ROM_CURVE] = OrientedCurveNiIntersectors<CatmullRomCurveT,4>();
return &function_local_static_prim;
}
from embree-aarch64.
I have split template instantiation into several .cpp files and now gcc-8 or later compiles in 3~5 mins per file on Jetson AGX(aarch64 linux)
https://github.com/lighttransport/embree-aarch64/tree/fast-compile
Another issue is it consumes lots of memory so we need to use less threads(e.g. 4 for Jetson AGX 16GB mem) to build otherwise out-of-memory error happens.
from embree-aarch64.
fast-compile
has been merged into aarch64-v3.12.0
. Now gcc-8 or later build goes ok with moderate compilation time(20~30 mins) on Jetson AGX 16GB.
from embree-aarch64.
AVX2 + arm64 build goes timeout on Travis due to the longer compilation time of curve_intersector_virtual***
(Travis has 10 mins timelimit for no output)
https://travis-ci.org/github/lighttransport/embree-aarch64/jobs/736104673
There will be no easy fix for this at the moment.
from embree-aarch64.
Related Issues (20)
- Road to intel embree v3.9.0 and beyond HOT 14
- verify NEON seg faults HOT 2
- `verify` watertight test fails to pass HOT 1
- Improve the accuracy of minps, maxps, rcp, rsqrt in NEON HOT 16
- Use newer SSE2NEON HOT 1
- SubD GridSOA seg faults om aarch64 (v3.11.0) HOT 2
- Watertight test fails in `verify` HOT 2
- SSE2NEON mapping for _mm_sqrt_ps(0) does not return 0 HOT 3
- support libc++ build on aarch64 linux + clang
- Code Changes that impact x64 HOT 3
- verify NEON.update failure in recent commit(at least from v3.11.0) HOT 7
- Lots of `verify` test failures in v3.12.0 merge HOT 2
- Internal compilation error(implicit_conv_expr) when using gcc8 ~ 10. HOT 1
- verify crashes for AVX2/NEON2X with ray packets HOT 1
- Native aarch64 build on Travis CI HOT 4
- create releases HOT 5
- verify fails to execute on M1 macOS HOT 5
- FPS degradation in tutorial code with GUI on M1 macOS
- Possible assertion at checkPadding16 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embree-aarch64.