TXG/MNX Posted December 8, 2016 Share Posted December 8, 2016 (edited) Hi, In the raptor manual there are 3 api calls to run GPU code. RAPTOR_call_GPU_code RAPTOR_call_GPU_code_STOP RAPTOR_call_GPU_code_nowait If we understand correctly we can load custom code into the GPU and to start the code we run the API call ? RAPTOR is a GPU engine what we understand, so is it safe to just load GPU code? Because then the code could maybe overwrite RAPTOR ?! Or are certain rules we must follow to let own GPU code co-exist with the RAPTOR engine ? Is there example code that uses one of these api's ? Edited December 8, 2016 by TXG/MNX Quote Link to comment Share on other sites More sharing options...
CyranoJ Posted December 8, 2016 Share Posted December 8, 2016 There's about 2k or so free in the GPU. Work out the size of your code, and copy to below the end of the GPU ram. If you overwrite RAPTOR, it'll go BANG. Quote Link to comment Share on other sites More sharing options...
TXG/MNX Posted December 8, 2016 Author Share Posted December 8, 2016 Ok great our code is very small so this should not be an issue. Must we save all register first a d restore afterwards or is that not needed ? Sent from UMI hammer with Tapatalk Quote Link to comment Share on other sites More sharing options...
CyranoJ Posted December 8, 2016 Share Posted December 8, 2016 Not needed, RAPTOR takes care of it's own. I'll add a function to return 'first free GPU address' in the next revision I guess. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.