Search results for

“offloading”

183 results found

Post

Replies

Boosts

Views

Activity

Metal Matrix Multiplication reference code
Hi,I have just started experimenting with Metal. I really just want to offload a few matrix multiplications to the GPU.So, I downloaded this perfectly applicable example code and ran it: https://developer.apple.com/library/ios/samplecode/MetalPartialSumsCompute/Introduction/Intro.html#//apple_ref/doc/uid/TP40015013-Intro-DontLinkElementID_2I can run it on my iphone 6 but there are several issues:It crashes sometimes (EXC_BAD_ACCESS (code=1), and other malloc errors). That's a bit worrying for reference code.It says I am getting approximately 0.04 gflops/sec[sic] using either CPU (Accelerate) or GPU (Metal). I believe I should be getting 3+ GFLOPS from the CPU? (http://www.anandtech.com/show/8554/the-iphone-6-review/3) I'm not sure what to expect from the GPU/Metal but I am assuming a considerably higher number.Here's example output:2015-12-02 14:48:27.772 MetalMatrixMultiply[5477:2056717] >> [12] Matrix Dimensions: A = [1248 x 1137], B = [1137 x 2004], C = [1248 x 2004], lda = 1248, ldb = 2008,
1
0
2.2k
Dec ’15
Will Cordova applications that download additional JavaScript be rejected
My team has been toying with the idea of developing an iOS app using Cordova, and recently, we've been looking into offloading as much of the main JavaScript as possible to our server, so any major bug fixes can be deployed quickly.The idea would be to have:the native app containing all HTML, CSS, plugins and Cordova files (all native code would be here)the main JavaScript added to the pages as external scripts from a servera device-ready function for each page that will set up and start the main JavaScript once it's availableI have seen comments that Apple could be trusting of code that runs in a webview, but it does seem like projects like this could be a security issue.Thanks!
3
0
1.1k
Oct ’15
How to increment ios badge notifiation count when app is not running?
We are already done with the initial setup for implementing Push notifications and are able to send/receive notifications successfully.Now, we have been looking for the possible solutions to handle badge count increment from ios app (especially when app is not in foreground) -1. Delegate the badge count calculation to server side. - If we think of offloading the task of badge calculation to app server, then question arises is that, how server side will get to know about the count of viewed notifications so that badge can be decremented accordingly.2. Use UIBackgroundModes and call 'didReceiveRemoteNotification:fetchCompletionHandler' method. - Apple says, this method will get called when my app is either in foreground or background state. With this we should be able to track the count/notification info even when the app is in background & thus it probably enables us to do the necessary calculation in iOS app itself. However, we have noticed that this method doesn't invoke when app is in backgroun
1
0
5.1k
Jul ’15
Metal Matrix Multiplication reference code
Hi,I have just started experimenting with Metal. I really just want to offload a few matrix multiplications to the GPU.So, I downloaded this perfectly applicable example code and ran it: https://developer.apple.com/library/ios/samplecode/MetalPartialSumsCompute/Introduction/Intro.html#//apple_ref/doc/uid/TP40015013-Intro-DontLinkElementID_2I can run it on my iphone 6 but there are several issues:It crashes sometimes (EXC_BAD_ACCESS (code=1), and other malloc errors). That's a bit worrying for reference code.It says I am getting approximately 0.04 gflops/sec[sic] using either CPU (Accelerate) or GPU (Metal). I believe I should be getting 3+ GFLOPS from the CPU? (http://www.anandtech.com/show/8554/the-iphone-6-review/3) I'm not sure what to expect from the GPU/Metal but I am assuming a considerably higher number.Here's example output:2015-12-02 14:48:27.772 MetalMatrixMultiply[5477:2056717] >> [12] Matrix Dimensions: A = [1248 x 1137], B = [1137 x 2004], C = [1248 x 2004], lda = 1248, ldb = 2008,
Replies
1
Boosts
0
Views
2.2k
Activity
Dec ’15
Will Cordova applications that download additional JavaScript be rejected
My team has been toying with the idea of developing an iOS app using Cordova, and recently, we've been looking into offloading as much of the main JavaScript as possible to our server, so any major bug fixes can be deployed quickly.The idea would be to have:the native app containing all HTML, CSS, plugins and Cordova files (all native code would be here)the main JavaScript added to the pages as external scripts from a servera device-ready function for each page that will set up and start the main JavaScript once it's availableI have seen comments that Apple could be trusting of code that runs in a webview, but it does seem like projects like this could be a security issue.Thanks!
Replies
3
Boosts
0
Views
1.1k
Activity
Oct ’15
How to increment ios badge notifiation count when app is not running?
We are already done with the initial setup for implementing Push notifications and are able to send/receive notifications successfully.Now, we have been looking for the possible solutions to handle badge count increment from ios app (especially when app is not in foreground) -1. Delegate the badge count calculation to server side. - If we think of offloading the task of badge calculation to app server, then question arises is that, how server side will get to know about the count of viewed notifications so that badge can be decremented accordingly.2. Use UIBackgroundModes and call 'didReceiveRemoteNotification:fetchCompletionHandler' method. - Apple says, this method will get called when my app is either in foreground or background state. With this we should be able to track the count/notification info even when the app is in background & thus it probably enables us to do the necessary calculation in iOS app itself. However, we have noticed that this method doesn't invoke when app is in backgroun
Replies
1
Boosts
0
Views
5.1k
Activity
Jul ’15