Giter Club home page Giter Club logo

Comments (9)

Groovounet avatar Groovounet commented on July 21, 2024

Hi,

There is no specific support for NEON instructions yet.

Which version of the NDK are you using?

Thanks,
Christophe

from glm.

subhransus avatar subhransus commented on July 21, 2024

Hi,

I am using r8c NDK.

Regards,
Subhransu

from glm.

subhransus avatar subhransus commented on July 21, 2024

Tried with r7b also. I get the same error, so guess it's independent of NDK version.

from glm.

Groovounet avatar Groovounet commented on July 21, 2024

I wonder whether it's not a compiler issue:
http://stackoverflow.com/questions/3775991/gdb-error-invalid-offset-value-too-big-0x00000400-unable-to-build-app-in-debu

Do you use GLM inside a big switch here?

from glm.

subhransus avatar subhransus commented on July 21, 2024

Yes, I saw this link before logging a bug report.
There is no switch case in my code, the error is reproducible with only the following 4 lines of code,

glm::mat4 m1(1.0f);
glm::mat4 m2(1.0f);
glm::mat4 m3(1.0f);

m3 = m1*m2;

There is no big switch case in glm either (my prelim investigation) ..
Wondering what's going wrong!

from glm.

Groovounet avatar Groovounet commented on July 21, 2024

Erm... me too :/

from glm.

 avatar commented on July 21, 2024

Just added those lines to my Android code and everything seems to work fine, I don't even get a warning (NDK r8b).

BTW adding explicit NEON support in GLM might not give as huge performance boost as one could expect. GLM is template-based and included directly into user code so there is a pretty good chance that GCC will automatically perform NEON-wise optimizations when NEON support is enabled in Android.mk. But, of course, I may be wrong on that one, it might be worth looking into.

from glm.

Groovounet avatar Groovounet commented on July 21, 2024

Ok. Then I am going to close this issue. Please reopen it if you find more clues on what generates this compatibility issue.

Thanks,
Christophe

from glm.

Groovounet avatar Groovounet commented on July 21, 2024

@jimvonmoon, I am sharing more or less the same thought than you for say 80% of the cases. However, some operations can be significantly improve using SIMD instructions directly. The SSE implementation of matrix inverse and multiplication show a significant gain.

from glm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.