Skip to content

Test NEO#172 disabled in Julia 1.12 #538

@michel2323

Description

@michel2323

Test disabled in Julia 1.12 because pointer representation in lowered code changed and now the SPIRV translator complains:

      From worker 5:	InvalidModule: Invalid SPIR-V module: Casts from private/local/global address space are allowed only to generic
      From worker 5:
      From worker 5:	  %bitcast_coercion = addrspacecast ptr %"ptr::Ptr" to ptr addrspace(1)
@testset "NEO#172" begin
    # conversions from integers to pointers resulted in lost memory stores

    function kernel(ptr)
        ptr = reinterpret(Core.LLVMPtr{Float32, AS.Global}, ptr)
        unsafe_store!(ptr, 42)
        return
    end

    if VERSION < v"1.12"
        a = oneArray(Float32[0])
        @oneapi kernel(pointer(a))
        @test Array(a) == [42]
    else
        @test_broken false
    end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions