Closed FoodChain1028 closed 3 months ago
Latest commit: |
2b92772
|
Status: | ✅ Deploy successful! |
Preview URL: | https://418953de.mopro.pages.dev |
Branch Preview URL: | https://integrate-metal-msm-in-ios.mopro.pages.dev |
Runtime error on iPad 15.2.
Seems that it requires iOS 17+. https://developer.apple.com/documentation/metal/mtllanguageversion/version3_1
Running MSM in algorithm: Metal Msm (our work)...
Vectors already generated
Init metal (GPU) state...
thread '<unnamed>' panicked at mopro-core/src/middleware/gpu_explorations/metal/msm.rs:65:67:
called `Result::unwrap()` on an `Err` value: PipelineError("Function initialize_buckets is using language version 3.1 which is incompatible with this OS.")
This PR will be moved with a newer PR for only iOS integration.
Integrating metal msm into
research/gpu-exploration-app
.Things that also have to improve in this PR
metallib
(in the file we made 2 targetsios
andmac
, which respectively represents targetiphoneos
andmacosx
)Currently we encounter a problem that should be solved. When the instance size become larger (above $2^{10}$),
GPU hang error
happens.Here's the error message: running MSM for $2^{16}$ scalars and $2^{16}$ points:
According to this forum, the error might cause due to the task we are executing is too large.
Here's two recommendation to solve this:
To run on iphone.
./mopro-core/src/middleware/gpu_explorations/metal/compile_metal.sh ios
(remember cd to the root dir)research/gpu-exploration-app
and run it (follow the README.md instructions) and remember to switch the target inmopro-config.toml
into device.p.s. There's no metal compilation for simulator, so you should directly run this on your ios device. (either iphone or ipad)