LuisaGroup / LuisaRender

High-Performance Cross-Platform Monte Carlo Renderer Based on LuisaCompute
BSD 3-Clause "New" or "Revised" License
417 stars 29 forks source link

Compiling error "reference to local binding 'basis' declared in enclosing function 'luisa::compute::metal::MetalCurve::build'" #22

Closed Meowuu7 closed 11 months ago

Meowuu7 commented 11 months ago

Describe the bug Building error

To Reproduce Steps to reproduce the behavior:

I run into this problem when I tried to compile the project on maxOS 13 M2 silicon: Screenshot 2023-12-04 at 01 03 13

Desktop (please complete the following information):

Meowuu7 commented 11 months ago

The compiling is successful in a Ubuntu 20.04 environment. But I encountered with the "CUDA not support" issue when I tried to render a scene using the command

./build/bin/luisa-render-cli  -b 'CUDA' ./data/bathroom/scene.luisa

Screenshot 2023-12-04 at 01 09 53

Mike-Leo-Smith commented 11 months ago

Describe the bug Building error

To Reproduce Steps to reproduce the behavior:

I run into this problem when I tried to compile the project on maxOS 13 M2 silicon: Screenshot 2023-12-04 at 01 03 13

Desktop (please complete the following information):

  • OS: maxOS 13 M2 silicon

Previous versions of clang has trouble capturing structural bindings in lambdas. I have worked around this in a recent version of LuisaCompute and just now pushed a submodule update to LuisaRender.

Please use

git pull
git submodule update --recursive --init

to pull and apply the fix.

Mike-Leo-Smith commented 11 months ago

The compiling is successful in a Ubuntu 20.04 environment. But I encountered with the "CUDA not support" issue when I tried to render a scene using the command

./build/bin/luisa-render-cli  -b 'CUDA' ./data/bathroom/scene.luisa

Screenshot 2023-12-04 at 01 09 53

Would you please run nvidia-smi to verify that your driver version is 535+?

Meowuu7 commented 11 months ago

The project can be successfully compiled by

Thank you for your help.