@@ -67,7 +67,7 @@ let lib = MTLLibrary(dev, "", opts)
6767 @test isempty (lib. functionNames)
6868end
6969
70- metal_code = read (joinpath (@__DIR__ , " dummy.metal" ), String)
70+ metal_code = read (joinpath (@__DIR__ , " .. " , " dummy.metal" ), String)
7171let lib = MTLLibrary (dev, metal_code, opts)
7272 @test lib. device == dev
7373 @test lib. label === nothing
@@ -77,7 +77,7 @@ let lib = MTLLibrary(dev, metal_code, opts)
7777 @test " kernel_2" in fns
7878end
7979
80- binary_path = joinpath (@__DIR__ , " dummy.metallib" )
80+ binary_path = joinpath (@__DIR__ , " .. " , " dummy.metallib" )
8181let lib = MTLLibraryFromFile (dev, binary_path)
8282 @test lib. device == dev
8383 @test lib. label === nothing
@@ -119,7 +119,7 @@ desc.specializedName = "MySpecializedKernel"
119119
120120
121121dev = first (devices ())
122- lib = MTLLibraryFromFile (dev, joinpath (@__DIR__ , " dummy.metallib" ))
122+ lib = MTLLibraryFromFile (dev, joinpath (@__DIR__ , " .. " , " dummy.metallib" ))
123123fun = MTLFunction (lib, " kernel_1" )
124124
125125compact_str = sprint (io-> show (io, fun))
347347@testset " compute pipeline" begin
348348
349349dev = first (devices ())
350- lib = MTLLibraryFromFile (dev, joinpath (@__DIR__ , " dummy.metallib" ))
350+ lib = MTLLibraryFromFile (dev, joinpath (@__DIR__ , " .. " , " dummy.metallib" ))
351351fun = MTLFunction (lib, " kernel_1" )
352352
353353pipeline = MTLComputePipelineState (dev, fun)
390390@testset " binary archive" begin
391391
392392dev = first (devices ())
393- lib = MTLLibraryFromFile (dev, joinpath (@__DIR__ , " dummy.metallib" ))
393+ lib = MTLLibraryFromFile (dev, joinpath (@__DIR__ , " .. " , " dummy.metallib" ))
394394fun = MTLFunction (lib, " kernel_1" )
395395
396396desc = MTLBinaryArchiveDescriptor ()
0 commit comments