Posts

Post not yet marked as solved
4 Replies
1.9k Views
I'm trying to run sample code for MPS graph, which I got here: https://developer.apple.com/documentation/metalperformanceshadersgraph/adding_custom_functions_to_a_shader_graph And it's not working. Builds successfully, but after you press train (play button), program fails right after first training iteration with errors like these: -[MTLDebugCommandBuffer lockPurgeableObjects]:2103: failed assertion `MTLResource 0x600001693940 (label: (null)), referenced in cmd buffer 0x124015800 (label: (null)) is in volatile or empty purgeable state at commit' -[MTLDebugCommandBuffer lockPurgeableObjects]:2103: failed assertion `MTLResource 0x600001693940 (label: (null)), referenced in cmd buffer 0x124015800 (label: (null)) is in volatile or empty purgeable state at commit' It is failing on commandBuffer.commit() in runTrainingIterationBatch() method. Its like something already committed operation (I've checked and yeah, command buffer is already commited). But why such thing in EXAMPLE CODE? I've tried to wrap commit operation with command buffer status check and it is helping to not fail, but program works wrong overall and not calculating loss well. Everything is getting worse because documentation for MPS Graph is empty! It's contains only class and method names without any description D; My env: Xcode 13.4.1 (13F100) macOS 12.4 MacBook Pro (m1 pro) 14' 2021 16gb Tried to build on iPhone 12 Pro Max / iOS 15.5 and to Mac catalyst application. Got same error everywhere
Posted
by abesmon.
Last updated
.
Post not yet marked as solved
0 Replies
859 Views
Documentation for MPS graph has no information about class and methods functionality. Its only enumerates everything it's got without any explanation what it is and how it works. Why so? https://developer.apple.com/documentation/metalperformanceshadersgraph Though, In MPSGraph header files there is some commentaries, so it's seems like a bug
Posted
by abesmon.
Last updated
.
Post marked as solved
1 Replies
2.5k Views
I have strange problem: app runs well when starting from Xcode, but it`s instantly crashes when distributed via TestFlight. I have tried: different configurations. All configurations runs ok from desktop Archiving and then manually (via devices in xcode) install .app from archive - also runs ok. All the crashlogs in TestFlight admin panel are blank! They just giving device info and "uptimemillis: null" I tried pulling log from "console" and here what I've got on app start: <files attached> 1st app log - https://developer.apple.com/forums/content/attachment/f27d1e6a-475a-4f0e-9bc6-2442f200ea31 2nd app log - https://developer.apple.com/forums/content/attachment/5c16038d-c2b3-48cf-8de6-10aac591e20b Yes, there are two applications that have same problem.
Posted
by abesmon.
Last updated
.