Skip to content

arrayfire::info and arrayfire::set_device both increase performance #226

Answered by 9prady9
MEisebitt asked this question in Q&A
Discussion options

You must be logged in to vote

The device warmup does take time depending the backend. How much time should be considered okay really depends on what other processes are running on the system and how long the the corresponding device initialisation takes place.

By calling, info or set_device ahead of timing section of code you are taking care of the warmup separately so it doesn't show up later. Basically, init is run by whichever function you call later if it isn't done already.

This is not bug.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by 9prady9
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #226 on December 09, 2020 05:15.