Giter VIP home page Giter VIP logo

Comments (8)

semeraro avatar semeraro commented on August 18, 2024

I have seen this too. I think naming the union and struct will make the problem go away but I dont know what kind of cascading error will be generated by doing that.

from gravit.

pnav avatar pnav commented on August 18, 2024

Doing a bit of sleuthing, the nameless struct allows us to use usual ray object member access (ray.origin, ray.direction, etc) but the union also allows us to easily memcpy these for ray movement, rather than iterating across each member.

Nathan, it appears that the GNU compiler actually should allow this. What version are you using on BW, and are you passing any additional flags?

from gravit.

ngoldbaum avatar ngoldbaum commented on August 18, 2024

Here's my compiler version information:

gcc (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I don't think I'm passing any additional flags, I'm more or less following the instructions in the readme.

from gravit.

ngoldbaum avatar ngoldbaum commented on August 18, 2024

BTW, this isn't on Blue Waters. I wasn't able to compile GregSpray on Blue Waters and eventually moved to another linux host where I hit this error.

from gravit.

pnav avatar pnav commented on August 18, 2024

ah, kk, I am able to reproduce on GCC 7.1.0 on S2

from gravit.

semeraro avatar semeraro commented on August 18, 2024

Made some changes to the gravit code to address this problem. Changed Ray.h and fixed all the cascading errors in the gravit code. Now I am chasing problems in the embree-shaders code. I am recompiling that with gcc in hopes the problems will go away. I am seeing some strange int narrowing error. Its in an sse related header

/work/01197/semeraro/stampede2/Projects/GraviT/third-party/embree-shaders/embree-shaders/common/math/../simd/sse_special.h:61:82: error: narrowing conversion of ‘2147483648’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing] static const ALIGN16_BEG Type _ps_##Name[4] ALIGN16_END = { Val, Val, Val, Val }

from gravit.

semeraro avatar semeraro commented on August 18, 2024

I think I have resolved the errors that caused GraviT to not compile under gnu. I merged the fixes into dev. It should now be possible to build and execute the code with the gnu compilers. Do a fresh pull and use the dev branch.

from gravit.

semeraro avatar semeraro commented on August 18, 2024

This is no longer broke. I fixed the code and can compile with gcc.

from gravit.

Related Issues (9)

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.