Git Product home page Git Product logo

tacc / gravit Goto Github PK

View Code? Open in Web Editor NEW
17.0 25.0 8.0 205.76 MB

GraviT is a distributed ray tracing framework that enables applications to leverage hardware-optimized ray tracers within a single environment across many nodes for large-scale rendering tasks.

Home Page: http://tacc.github.io/GraviT/

License: Other

CMake 8.33% C++ 83.08% C 1.37% Shell 0.92% Cuda 2.54% Python 3.76%
distributed raytracing gpu-raytracing cpu-raytracing software-defined-visualization

gravit's People

Contributors

applekey avatar hyungman avatar jgbarbosa avatar pnav avatar rbrtribeiro avatar scottre avatar semeraro avatar srinathv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gravit's Issues

Trouble compiling GregSpray

I'm trying to follow the instructions for building GraviT on the dev branch, but am hitting issues while trying to compile GregSpray:

My cmake invocation looks like:

embree_DIR=../embree cmake -DCMAKE_PREFIX_PATH=../ispc/ispc-v1.9.2-osx -DCMAKE_INSTALL_PREFIX:PATH=$PWD/install -DOSPRAY_MODULE_OPENGL_UTIL=True -DOSPRAY_USE_EXTERNAL_EMBREE=True .

And here's the output I see: https://gist.github.com/ngoldbaum/49043a3aa62648a9976f87a7d5e3cfcd

The error text is:

CMake Error at cmake/ospray_macros.cmake:168 (ADD_SUBDIRECTORY):
  ADD_SUBDIRECTORY given source "modules" which is not an existing directory.
Call Stack (most recent call first):
CMakeLists.txt:65 (OSPRAY_ADD_SUBDIRECTORY)

I tried creating a modules directory in the root of GregSpray but that led to the following error:

CMake Error at cmake/ospray_macros.cmake:168 (ADD_SUBDIRECTORY):
  The source directory

    /Users/goldbaum/Documents/GraviT/third-party/GregSpray/modules

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  CMakeLists.txt:65 (OSPRAY_ADD_SUBDIRECTORY)

Unfortunately I'm pretty unfamiliar with cmake so I'm not sure where to go from here.

pygvt assumes it's being built with the intel compilers

The pygvt setup.py file adds irc and irf to the list of libraries to link against. This is problematic if you are trying to build pygvt on a system that does not have the intel compilers installed. See

GraviT/pygvt/setup.py

Lines 80 to 81 in cf8e829

"irc",
"imf",

I've removed these two libraries in my local copy of pygvt but am unsure of a more generic fix. I guess we need to somehow detect that someone is trying to build with the intel compilers and add the intel runtime libraries then.

Seg fault running the gvtVol app on MacOS

I built GraviT with the following options:

GVT_VOLUME True
GVT_RENDER_ADAPTER_GREGSPRAY True
GVT_VOL_APP True
GVT_TIMING False
GVT_TESTING False

When running the gvtVol app with the following invocation:

LD_LIBRARY_PATH=./lib:../third-party/GregSpray/install/lib bin/gvtVol -volfile ../data/vol/int2.bov -domain -ctffile ../data/colormaps/Grayscale.orig.cmap -otffile ../data/colormaps/Grayscale.orig.omap -wsize 512,512 -eye 512,512,512 -look 127.5,127.5,127.5 -upVector 0,0,1 -imagefile supertest -threads 8 >spoot.out

(as suggested by @semeraro on Slack) I get a segmentation fault with the following traceback:

[ROUS:51740] *** Process received signal ***
[ROUS:51740] Signal: Segmentation fault: 11 (11)
[ROUS:51740] Signal code:  (0)
[ROUS:51740] Failing at address: 0x0
[ROUS:51740] [ 0] 0   libsystem_platform.dylib            0x00007fff6c0e8f5a _sigtramp + 26
[ROUS:51740] [ 1] 0   ???                                 0x000000011d2e8088 0x0 + 4784554120
[ROUS:51740] [ 2] 0   mca_pml_ob1.so                      0x0000000113871d38 mca_pml_ob1_iprobe + 127
[ROUS:51740] [ 3] 0   libmpi.20.dylib                     0x000000010f5f18c1 MPI_Iprobe + 279
[ROUS:51740] [ 4] 0   gvtVol                              0x000000010f529577 _ZN3gvt4comm5scomm3runEv + 279
[ROUS:51740] [ 5] 0   gvtVol                              0x000000010f529421 _ZN3tbb8internal13function_taskIZN3gvt4comm12communicator4initEiPPcbE3$_0E7executeEv + 17
[ROUS:51740] [ 6] 0   libtbb.dylib                        0x000000010f6dbb38 _ZN3tbb8internal16custom_schedulerINS0_20IntelSchedulerTraitsEE18local_wait_for_allERNS_4taskEPS4_ + 708
[ROUS:51740] [ 7] 0   libtbb.dylib                        0x000000010f6d665e _ZN3tbb8internal5arena7processERNS0_17generic_schedulerE + 272
[ROUS:51740] [ 8] 0   libtbb.dylib                        0x000000010f6d604c _ZN3tbb8internal6market7processERN3rml3jobE + 66
[ROUS:51740] [ 9] 0   libtbb.dylib                        0x000000010f6d23a3 _ZN3tbb8internal3rml14private_worker3runEv + 175
[ROUS:51740] [10] 0   libtbb.dylib                        0x000000010f6d22ef _ZN3tbb8internal3rml14private_worker14thread_routineEPv + 9
[ROUS:51740] [11] 0   libsystem_pthread.dylib             0x00007fff6c0f26c1 _pthread_body + 340
[ROUS:51740] [12] 0   libsystem_pthread.dylib             0x00007fff6c0f256d _pthread_body + 0
[ROUS:51740] [13] 0   libsystem_pthread.dylib             0x00007fff6c0f1c5d thread_start + 13
[ROUS:51740] *** End of error message ***
[1]    51740 segmentation fault  LD_LIBRARY_PATH=./lib:../third-party/GregSpray/install/lib bin/gvtVol -volfil

I'm able to demangle the first entry in gvtVol in the traceback to gvt::comm::scomm::run() but was not able to demangle _ZN3tbb8internal13function_taskIZN3gvt4comm12communicator4initEiPPcbE3$_0E7executeEv

GregSpray fails to install

OK, I got past the build issue in #11 and was able to successfully build GregSpray. Now when I try to install I get the following error:

$ make install
[  3%] Built target ospray_common
[ 49%] Built target ospray
[ 50%] Built target ospTutorialC
[ 51%] Built target ospTutorial
[ 52%] Built target ospray_module_opengl_util
[ 53%] Built target ospray_xml
[ 55%] Built target ospray_importer
[ 56%] Built target ospray_tfn
[ 60%] Built target ospray_minisg
[ 64%] Built target ospray_commandline
[ 66%] Built target ospCvtParaViewTfcn
[ 66%] Built target ospray_script
[ 67%] Built target ospBenchmark
[ 69%] Built target ospray_glut3d
[ 70%] Built target ospGlutViewer
[ 79%] Built target ospray_sg
[ 85%] Built target ospQtViewer
[100%] Built target ospVolumeViewer
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/ospray.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/OSPExternalRays.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/OSPDataType.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/OSPTexture.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/share/doc/OSPRay/LICENSE.txt
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/share/doc/OSPRay/CHANGELOG.md
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/share/doc/OSPRay/README.md
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/lib/libembree.2.16.5.dylib
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/OSPConfig.h
-- Installing: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/lib/libospray_common.1.1.2.dylib
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/lib/libospray_common.0.dylib
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/lib/libospray_common.dylib
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/AffineSpace.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/box.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/common.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/constants.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/FileName.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/intrinsics.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/library.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/LinearSpace.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/malloc.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/math.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/platform.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/Quaternion.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/RefCount.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/sysinfo.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/thread.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/include/ospray/SDK/../ospcommon/vec.h
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/lib/libtbb.dylib
-- Up-to-date: /Users/goldbaum/Documents/GraviT/third-party/GregSpray/install/lib/libtbbmalloc.dylib
CMake Error at builddir/ospray/intel64/cmake_install.cmake:36 (file):
  file INSTALL cannot find
  "/Users/goldbaum/Documents/GraviT/third-party/GregSpray/ospray/TBB_LIBRARY_DEBUG-NOTFOUND".
Call Stack (most recent call first):
  cmake_install.cmake:66 (include)

Perhaps I needed to install the TBB library before building Embree? I built Embree from source using the submodule in the GraviT repo.

Add project description

The only description right now is in the readme, so it's not going to be found by GitHub searches.

pygvt looks for mpicxx library but OpenMPI provides mpi_cxx

pygvt fails to build on my setup with the following error:

clang++ -bundle -undefined dynamic_lookup build/temp.macosx-10.12-x86_64-3.6/src/gvt/gvt.o -L/Users/goldbaum/Documents/embree-2.17.0.x86_64.macosx/lib -L/usr/local/lib/lib64 -L/usr/local/lib -L/usr/local/lib/lib -L/Users/goldbaum/Documents/iceT/lib -lgvtRender -lgvtCore -lIceTGL -lIceTMPI -lIceTCore -lembree -lboost_system-mt -lmpi -lmpicxx -o /Users/goldbaum/Documents/GraviT/pygvt/gvt.cpython-36m-darwin.so -std=c++11 -mmacosx-version-min=10.11 -stdlib=libc++
ld: warning: directory not found for option '-L/usr/local/lib/lib64'
ld: warning: directory not found for option '-L/usr/local/lib/lib'
ld: library not found for -lmpicxx

I was able to fix this locally by replacing mpicxx in the pygvt setup.py file with mpi_cxx.

Failed assertion using pygvt

When I run test.py in the repo, using the latest version of the dev branch, I get the following output:

Create instance Cone0
Create instance Cube1
Create instance Cone2
Create instance Cube3
Create instance Cone4
Create instance Cube5
Create instance Cone6
Create instance Cube7
Create instance Cone8
Create instance Cone9
Create instance Cube10
Create instance Cone11
Create instance Cube12
Create instance Cone13
Create instance Cube14
Create instance Cone15
Create instance Cube16
Create instance Cone17
Create instance Cube18
Create instance Cone19
Create instance Cone20
Create instance Cube21
Create instance Cone22
Failed assertion `false [gvt/core/context/Database.cpp : 222]: Pointer used in marsh

This is happening in the call to render, here:

gvt.render("render");

Unable to build GraviT on Linux with GNU toolchain

Currently the build is failing with the following output: https://gist.github.com/ngoldbaum/8a0c53ca94b03b2e6b1af61dcc5dc636

One concrete issue I see in the output is this:

/home/goldbaum/GraviT/src/gvt/render/actor/Ray.h:149:17: error: member 'glm::vec3 gvt::render::actor::Ray::<anonymous union>::<anonymous struct>::origin' with constructor not allowed in anonymous aggregate

Apparently gcc doesn't like anonymous structs with constructors. There also appear to be a large number of template-related errors.

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.