Skip to main content

inline void set_lookahead(
    celerity::queue&,
    experimental::lookahead lookahead)

Description

Controls the lookahead window size for all future submissions on the queue. The default setting is lookahead::automatic. Use this function if the default configuration either does not eliminate enough buffer resizes in your application (lookahead::infinite), or host tasks and kernels interact with the rest of your application in ways that require immediate flushing of every submitted command group (lookahead::none).

Declared at: include/queue.h:133

Parameters

celerity::queue&
experimental::lookahead lookahead