Jump to content
Sign in to follow this  
TXG/MNX

Question about Raptor_call_GPU_code api's

Recommended Posts

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 by TXG/MNX

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...