Code Monkey home page Code Monkey logo

Comments (4)

NeedsMoar avatar NeedsMoar commented on September 27, 2024

I just realized u64.h lives under the src\utils\ subdirectory of the main renderer, not the compute sub-project, so it might be namespace leakage like the other issue I filed a few weeks ago after all. You might want to move this bug over there if possible.

from luisacompute.

Mike-Leo-Smith avatar Mike-Leo-Smith commented on September 27, 2024

Hi @NeedsMoar

I'm not sure if this is a compiler bug or if it's because I have some ill-formed use of the C++ language (TBH, it's too hard to learn all the C++ syntax and rules). Anyways, explicitly specifying the return type as luisa::compute::Bool should be the most straightforward fix and I'll merge it into the LuisaRender repo. Many thanks for your investigation!

Allows it to build, but just changing the return to bool doesn't; it then starts thinking the "rhs" parameter is in error, saying that no suitable conversion from bool to luisa::Compute::Var exists. These operators should all be returning bool so something weird is happening.

The plain bool type is expected not to work because the operations on shader variables (i.e., the Var<T> or Expr<T> objects) cannot be converted back to the native C++ values of type bool.

Also, we'll eventually remove the u64.h util header. Earlier it was for emulated 64-bit integer computation with two 32-bit integers but now we have extended LuisaCompute's type system with direct support for 64-bit integers. So the emulation is no longer necessary.

from luisacompute.

Mike-Leo-Smith avatar Mike-Leo-Smith commented on September 27, 2024

I have removed the outdated U64 implementation from LuisaRender.

from luisacompute.

NeedsMoar avatar NeedsMoar commented on September 27, 2024

Thought I closed this, but the initial hotfix was working so I will now.

from luisacompute.

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.