Comments (8)
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.
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.
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.
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.
ah, kk, I am able to reproduce on GCC 7.1.0 on S2
from gravit.
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.
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.
This is no longer broke. I fixed the code and can compile with gcc.
from gravit.
Related Issues (9)
- Enhancement: Lua bindings HOT 3
- pygvt looks for mpicxx library but OpenMPI provides mpi_cxx HOT 3
- Trouble compiling GregSpray HOT 7
- GregSpray fails to install HOT 5
- Seg fault running the gvtVol app on MacOS HOT 1
- Add project description HOT 1
- Failed assertion using pygvt HOT 24
- pygvt assumes it's being built with the intel compilers HOT 4
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 gravit.