Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for macOS Sonoma #201

Closed
2 tasks
maleadt opened this issue Jun 6, 2023 · 1 comment · Fixed by JuliaGPU/GPUCompiler.jl#518
Closed
2 tasks

Support for macOS Sonoma #201

maleadt opened this issue Jun 6, 2023 · 1 comment · Fixed by JuliaGPU/GPUCompiler.jl#518

Comments

@maleadt
Copy link
Member

maleadt commented Jun 6, 2023

TODO:

  • Segfault during examples/vadd.jl
  • ...
@maleadt
Copy link
Member Author

maleadt commented Jun 6, 2023

Segfault during examples/vadd.jl:

❯ jl --project examples/vadd.jl

[8955] signal (11.2): Segmentation fault: 11
in expression starting at /Users/tim/Julia/pkg/Metal/examples/vadd.jl:20
_platform_strlen at /usr/lib/system/libsystem_platform.dylib (unknown line)
Allocations: 14223062 (Pool: 14207083; Big: 15979); GC: 20
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x000000018f9aedc4 libsystem_platform.dylib`_platform_strlen + 4
    frame #1: 0x00000001998750ac Metal`deserializeArgument(id<MTLDeviceSPI>, AirReflection::NodeId const*, flatbuffers::Vector<AirReflection::NodeId const*::Offset<id<MTLDeviceSPI>::Node>> const*, DeserializeContext const&, MTLBindingInternal**) + 8072
    frame #2: 0x0000000199870918 Metal`deserializeArguments(id<MTLDeviceSPI>, flatbuffers::Vector<AirReflection::NodeId const*> const*, flatbuffers<id<MTLDeviceSPI>::Offset<flatbuffers::Vector::Node>> const*, DeserializeContext const&, MTLBindingInternal**&, bool, unsigned int*) + 160
    frame #3: 0x0000000199870728 Metal`MTLComputeReflectionDeserializerAIR::deserialize(id<MTLDeviceSPI>, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>) + 436
    frame #4: 0x000000019992e0d8 Metal`-[MTLFunctionReflectionInternal initWithDevice:reflectionData:functionType:options:] + 416
    frame #5: 0x00000001f6d18eac AGXMetal13_3`AGX::Program<AGX::G13::ComputeProgramVariant, AGX::ComputeProgramKey, AGX::G13::IndirectArgumentLayout, AGXG13GFamilyIndirectArgumentBufferLayout>::signalPending(unsigned long, NSObject<OS_dispatch_data>*, ReflectionKey const&, id<MTLDeviceSPI>, MTLFunctionType, MTLCompilerError) + 348
    frame #6: 0x00000001f6d16ee4 AGXMetal13_3`invocation function for block in AGX::UserCommonShaderFactory<AGX::G13::Encoders, AGX::G13::Classes, AGX::G13::ObjClasses>::createComputeProgramVariant(MTLComputePipelineDescriptor*, AGXG13GFamilyDevice*, unsigned long, AGXG13GFamilyBinaryArchive*, NSArray*, AGX::G13::ComputeProgram*, NSObject<OS_dispatch_data>*, bool, void (AGX::G13::ComputeProgramVariant*, ReflectionKey, NSMutableDictionary*, MTLCompilerError, NSString*) block_pointer) + 480
    frame #7: 0x00000001f6d19bac AGXMetal13_3`invocation function for block in void AGX::Compiler::compileProgram<AGX::ComputeProgramKey, AGCDeserializedReply>(AGX::ComputeProgramKey const&, MTLCompileFunctionRequestData*, void (AGCDeserializedReply const&, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, MTLCompilerError, NSString*, unsigned long long) block_pointer) + 180
    frame #8: 0x00000001f6d1990c AGXMetal13_3`invocation function for block in void AGX::Compiler::compileProgram<AGX::ComputeProgramKey, AGCDeserializedReply>(AGX::ComputeProgramKey const&, MTLCompileFunctionRequestData*, void (AGCDeserializedReply const&, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, MTLCompilerError, NSString*, unsigned long long) block_pointer) + 136
    frame #9: 0x00000001f6d19a1c AGXMetal13_3`invocation function for block in void AGX::Compiler::compileProgram<AGX::ComputeProgramKey, AGCDeserializedReply>(AGX::ComputeProgramKey const&, MTLCompileFunctionRequestData*, void (AGCDeserializedReply const&, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, MTLCompilerError, NSString*, unsigned long long) block_pointer) + 124
    frame #10: 0x000000019993fe88 Metal`-[MTLCompiler compileFunctionRequestInternal:frameworkLinking:linkDataSize:reflectionOnly:completionHandler:] + 7108
    frame #11: 0x00000001f6d176b0 AGXMetal13_3`void AGX::Compiler::compileProgram<AGX::ComputeProgramKey, AGCDeserializedReply>(AGX::ComputeProgramKey const&, MTLCompileFunctionRequestData*, void (AGCDeserializedReply const&, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>*, MTLCompilerError, NSString*, unsigned long long) block_pointer) + 432
    frame #12: 0x00000001f6d15e28 AGXMetal13_3`AGX::UserCommonShaderFactory<AGX::G13::Encoders, AGX::G13::Classes, AGX::G13::ObjClasses>::createComputeProgramVariant(MTLComputePipelineDescriptor*, AGXG13GFamilyDevice*, unsigned long, AGXG13GFamilyBinaryArchive*, NSArray*, AGX::G13::ComputeProgram*, NSObject<OS_dispatch_data>*, bool, void (AGX::G13::ComputeProgramVariant*, ReflectionKey, NSMutableDictionary*, MTLCompilerError, NSString*) block_pointer) + 1108
    frame #13: 0x00000001f6e81510 AGXMetal13_3`AGX::UserCommonShaderFactory<AGX::G13::Encoders, AGX::G13::Classes, AGX::G13::ObjClasses>::createComputePipeline(MTLComputePipelineDescriptor*, AGXG13GFamilyDevice*, unsigned long, MTLComputePipelineReflection**, NSError**, void (id<MTLComputePipelineState>, MTLComputePipelineReflection*, NSError*) block_pointer) + 1024
    frame #14: 0x00000001f6e837e4 AGXMetal13_3`-[AGXG13GFamilyDevice newComputePipelineStateWithDescriptor:error:] + 64
    frame #15: 0x0000000199849dbc Metal`-[_MTLDevice newComputePipelineStateWithFunction:error:] + 72

@metal identity(nothing) works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant