Coder Social home page Coder Social logo

Comments (14)

BachiLi avatar BachiLi commented on July 22, 2024

Hi,

CMake probably failed to find nvcc in your case. I slightly modified the building process to make it less confusing. Can you try again? If it still doesn't work, can you show me where is your nvcc, and the CUDA-related variables in your CMakeCache.txt? Maybe also show the log of make VERBOSE=1

from redner.

jayavanth avatar jayavanth commented on July 22, 2024

Sweet! It works now but I'm getting a bus error when I run the tests

[1]    6024 bus error (core dumped)  python3 test_shadow_light.py

from redner.

BachiLi avatar BachiLi commented on July 22, 2024

Interesting. What is the compute capability of your GPU? Do you know which line the code crashed?

from redner.

jayavanth avatar jayavanth commented on July 22, 2024

I have a K40 (3.5) and TitanX (5.2) and it's failing on both of them. My guess is it's crashing on the CPU. I'll find out at what line it's crashing

from redner.

jayavanth avatar jayavanth commented on July 22, 2024

It's crashing on line 64 test_shadow_light.py

img = render(0, *args)

from redner.

BachiLi avatar BachiLi commented on July 22, 2024

Can you maybe run a debugger on python (e.g. gdb python, run test_shadow_light.py), and find out which line in the C++ that crashes?

from redner.

jayavanth avatar jayavanth commented on July 22, 2024

Here's the line:

Thread 1 "python3" received signal SIGBUS, Bus error.
Scene::Scene (this=0x22aaa80, camera=..., shapes=std::vector of length 3, capacity 3 = {...}, 
    materials=std::vector of length 2, capacity 2 = {...}, lights=std::vector of length 1, capacity 1 = {...}, use_gpu=<optimized out>)
    at /home/jay/redner/scene.cpp:137
137	            light_areas[light_id] = area_sum;
(gdb) p area_sum
$1 = 0.040000001192092904
(gdb) p light_id
$2 = 0
(gdb) p light_areas
$3 = {use_gpu = true, data = 0x2308941000, count = 1}

from redner.

BachiLi avatar BachiLi commented on July 22, 2024

I supposed it's because I didn't synchronize the kernel. I pushed some fix. Let me know if it fixes the problem.

from redner.

jayavanth avatar jayavanth commented on July 22, 2024

The test runs fine on the CPU with your latest push. But I get this on either GPUs

Thread 51 "python3" received signal SIGBUS, Bus error.
[Switching to Thread 0x7fff5affd700 (LWP 17870)]
0x00007fffbe9091f2 in DScene::DScene (this=0x7fff7800b3b0, camera=..., shapes=std::vector of length 3, capacity 3 = {...}, 
    materials=std::vector of length 2, capacity 2 = {...}, lights=std::vector of length 1, capacity 1 = {...}, use_gpu=<optimized out>)
    at /home/jay/redner/scene.cpp:202
202	            this->shapes[shape_id] = *shapes[shape_id]

from redner.

BachiLi avatar BachiLi commented on July 22, 2024

Probably the same issue. I pushed another fix that adds more synchronizations. Let me know if there's more issues.

from redner.

jayavanth avatar jayavanth commented on July 22, 2024

All tests are running fine now. Awesome! Thanks!

from redner.

Skorkmaz88 avatar Skorkmaz88 commented on July 22, 2024

I started to have this assertion error after using the Redner a while , scene.cpp , line 125, when using calling path tracing functions from Jupyter notebook , but not from .py files so far.

from redner.

BachiLi avatar BachiLi commented on July 22, 2024

You probably did pip install redner instead of pip install redner-gpu.
Try pip uninstall redner and reinstall the GPU version.

from redner.

Skorkmaz88 avatar Skorkmaz88 commented on July 22, 2024

I actually initially installed GPU version and then after awhile had issues, however that is probably an issue happened in my system, oddly py files were running smoothly still, and they were using the same environment. Reinstalling redner-gpu seems to be working now.

from redner.

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.