Coder Social home page Coder Social logo

Comments (6)

tjjarvinen avatar tjjarvinen commented on June 1, 2024 1

Can confirm that it now works with v4.07 - thanks!

Closing this one.

from tensoroperations.jl.

Jutho avatar Jutho commented on June 1, 2024

The reason for this happening now is that indeed because you have CUDA.jl v5.0.0, whereas our tests and compat bounds are "CUDA=4". Apparently, these compat bounds are not respected in combination with package extensiosn (cjdoris/PackageExtensionCompat.jl#4)

We are looking into fixing this asap.

from tensoroperations.jl.

lkdvos avatar lkdvos commented on June 1, 2024

Actually, it seems like this might be a bug from our side. I think because of how I implemented the package extension, it was not reading the CUDA compat. I changed this now, such that TensorOperations should now restrict CUDA to v4. In order to support v5, a small adaptation of StridedViews.jl should do the trick, so we should be able to fix this soon.

from tensoroperations.jl.

Jutho avatar Jutho commented on June 1, 2024

@lkdvos , so with the following configuration the above code definitely works:

⌅ [052768ef] CUDA v4.4.1
  [6aa20fa7] TensorOperations v4.0.6 `~/.julia/dev/TensorOperations`
⌃ [011b41b2] cuTENSOR v1.1.0

The following line, https://github.com/JuliaGPU/CUDA.jl/blob/9888ac92810373c3d6b58b5ca972d8df2afb4829/lib/cutensor/src/libcutensor.jl#L390C16-L390C16, which is in the stack trace, was already there in CUDA 4.4.1 and was already then forcing the conversion to ptr::PtrOrCuPtr{Cvoid}. So I guess that something in CUDA itself changed of how it handles conversions to PtrOrCuPtr{Cvoid} and why this does no longer end up with our definition for converting a CuStridedView{T} to PtrOrCuPtr{T}.

from tensoroperations.jl.

Jutho avatar Jutho commented on June 1, 2024

Ok I think I understand. the reason why StridedViews was not enforcing CUDAv4 is because Strided 2.0.4 allows both StridedViews 0.1 and 0.2. So the package manager resolves this by having TensorOperations 4.0.6, Strided 2.0.4, CUDA5, and StridedViews 0.1.2. The latter doesn't have the package extension for CUDA and so does not impose restrictions on CUDA. And therefore, our pointer conversion routine is not called at all.

from tensoroperations.jl.

Jutho avatar Jutho commented on June 1, 2024

Thanks for reporting

from tensoroperations.jl.

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.