作者:wjwakx5792 | 来源:互联网 | 2023-09-24 14:02
IwastryingtomakeasimpleappforsudokusolvingonGPUwithiOSMetalFramework.我想做一个简单的数独应用,用
I was trying to make a simple app for sudoku solving on GPU with iOS Metal Framework.
我想做一个简单的数独应用,用iOS金属框架在GPU上解决。
I was following instructions from this blog post:
我遵循这篇博文的指示:
http://memkite.com/blog/2014/12/15/data-parallel-programming-with-metal-and-swift-for-iphoneipad-gpu/
http://memkite.com/blog/2014/12/15/data-parallel-programming-with-metal-and-swift-for-iphoneipad-gpu/
I version my code here:
我将我的代码版本设置在这里:
https://github.com/mateuszbuda/Sudoku
(As of writing this question HEAD is commit c3e06e0)
(在写这个问题时,HEAD是commit c3e06e0)
And I've encountered error when calling
我在调用时遇到了错误
newComputePipelineStateWithFunction
that is while setting up MTLDevice in ViewController (line 95):
那是在ViewController中设置MTLDevice的时候(第95行):
https://github.com/mateuszbuda/Sudoku/blob/c3e06e0e1edc724eea20962f32e49f0df8143b7d/Sudoku/ViewController.swift
The error I get is:
我得到的错误是:
Error Domain=AGXMetal Code=1 "Compiler encountered an internal error"
I'm running this on iPhone 6 Plus with iOS 8.1.3
我在iPhone 6 Plus和iOS 8。3上运行这个
Have someone any idea what can cause the error I get?
有人知道是什么导致了我的错误吗?
2 个解决方案