Giter Site home page Giter Site logo

Comments (3)

maleadt avatar maleadt commented on June 15, 2024 1

This is JuliaGPU/GPUCompiler.jl#214, due to that ambiguity the implementation of printf doesn't infer (but wants to throw a run-time error).

Shouldn't happen on the master branch, and I'll be tagging a release soon!

from oneapi.jl.

chriselrod avatar chriselrod commented on June 15, 2024

As an update:

julia> a = oneArray(rand(Float32, 2,2))
2×2 oneArray{Float32, 2}:
 0.787535  0.849568
 0.418914  0.621363

julia> a .+ 1f0
2×2 oneArray{Float32, 2}:
 1.78754  1.84957
 1.41891  1.62136

julia> a = oneArray(rand(2,2))
2×2 oneArray{Float64, 2}:
 0.130347  0.95715
 0.450905  0.869891

julia> a .+ 1
┌ Error: Module compilation failed:
│
│ error: double type is not supported on this platform

Perhaps worth making the example use Float32 by default?
Iris(R) Xe Graphics are common in laptop iGPUs over the past year.

from oneapi.jl.

maleadt avatar maleadt commented on June 15, 2024

Yeah that makes sense, I've updated the README.
(My IGP did have Float64 support, is why I didn't run into it earlier.)

from oneapi.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.