MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / isGPUVersionInRange

Function isGPUVersionInRange

tensorflow/lite/delegates/gpu/cl/cl_device.cc:138–140  ·  view source on GitHub ↗

check that gpu_version belong to range min_version-max_version min_version is included and max_version is excluded.

Source from the content-addressed store, hash-verified

136// check that gpu_version belong to range min_version-max_version
137// min_version is included and max_version is excluded.
138bool isGPUVersionInRange(int gpu_version, int min_version, int max_version) {
139 return gpu_version >= min_version && gpu_version < max_version;
140}
141} // namespace
142
143// There is no rule for gpu version encoding, but we found these samples:

Callers 4

IsAdreno3xxMethod · 0.85
IsAdreno4xxMethod · 0.85
IsAdreno5xxMethod · 0.85
IsAdreno6xxMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected