Graph Framework
Loading...
Searching...
No Matches
gpu Namespace Reference

Name space for GPU backends. More...

Classes

class  cpu_context
 Class representing a cpu context. More...
 
class  cuda_context
 Class representing a cuda gpu context. More...
 
class  metal_context
 Class representing a metal gpu context. More...
 

Functions

llvm::SmallVector< const char *, 8 > split_string (char *string)
 Split a string by the space delimiter.
 

Detailed Description

Name space for GPU backends.

Function Documentation

◆ split_string()

llvm::SmallVector< const char *, 8 > gpu::split_string ( char *  string)

Split a string by the space delimiter.

The exec functions need the arguments split into individual calls. So this splits the strings that come from cmake into a char * vector. Note the first token will be duplacted in the first two elements.

Parameters
[in]stringInput string.
Returns
The string split into an array of arguments.