mopro icon indicating copy to clipboard operation
mopro copied to clipboard

Integrating gpu exploration app

Open FoodChain1028 opened this issue 1 year ago • 6 comments

The gpu exploration app is made using mopro init. This app explores the msm functions that we implements in mopro-core and test in rust, and can be run on simulator and mobile.

FoodChain1028 avatar May 14 '24 14:05 FoodChain1028

Can you update the mopro-cli and check your uniffi-bindgen version? I got diffs in mopro.swift

vivianjeng avatar May 15 '24 02:05 vivianjeng

Can you update the mopro-cli and check your uniffi-bindgen version? I got diffs in mopro.swift

Hi @vivianjeng, my current uniffi-bindgen version is 0.25.3 and I updated mopro-cli now. Can you check again?

FoodChain1028 avatar May 15 '24 12:05 FoodChain1028

the mopro test works for me. Thank you. can you check your uniffi-bindgen --version in the terminal? it is still different.

vivianjeng avatar May 16 '24 14:05 vivianjeng

the mopro test works for me. Thank you. can you check your uniffi-bindgen --version in the terminal? it is still different.

uniffi-bindgen --version
uniffi-bindgen 0.25.3

mine is 0.25.3

Is the difference about the file keyword in front of each statement?

private extension Data {
    init(rustBuffer: RustBuffer) {
        // TODO: This copies the buffer. Can we read directly from a
        // Rust buffer?
        self.init(bytes: rustBuffer.data!, count: Int(rustBuffer.len))
    }
}

and

fileprivate extension Data {
    init(rustBuffer: RustBuffer) {
        // TODO: This copies the buffer. Can we read directly from a
        // Rust buffer?
        self.init(bytes: rustBuffer.data!, count: Int(rustBuffer.len))
    }
}

FoodChain1028 avatar May 16 '24 15:05 FoodChain1028

@FoodChain1028 yes mine is also 0.25.3 does it happen to you if you run mopro build --platforms ios in the gpu-benchmark dir?

vivianjeng avatar May 16 '24 15:05 vivianjeng

@vivianjeng
I checked with the binding file generated from mopro and found that the difference. And no, after I ran mopro build --platforms ios, the result came out was the one in gpu-exploration-app (without keyword file).

FoodChain1028 avatar May 16 '24 15:05 FoodChain1028