MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / initReadingData

Function initReadingData

src/library/tools/tune/toolslib.c:140–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140bool
141initReadingData(StorageCacheImpl* cacheImpl, TargetDevice* tdev )
142{
143 char* devName;
144 DeviceInfo defInf;
145
146 initCLDeviceInfoRec(tdev, &defInf);
147 initBlasFuncionData(cacheImpl->functionInfo);
148 initCacheData(cacheImpl->functionInfo, &defInf);
149
150 cacheImpl->endFile = calcOffset(cacheImpl->functionInfo);
151 devName = getDevName(tdev);
152 cacheImpl->fpath = createFullPatch(devName, false);
153 cacheImpl->fpath_tmp = createFullPatch(devName, true);
154 free(devName);
155 if (cacheImpl->fpath == NULL) {
156 return false;
157 }
158
159 return true;
160}
161
162int
163getGranularityInfo(

Callers 1

getStorageCacheFunction · 0.85

Calls 6

initCLDeviceInfoRecFunction · 0.85
initBlasFuncionDataFunction · 0.85
initCacheDataFunction · 0.85
calcOffsetFunction · 0.85
getDevNameFunction · 0.85
createFullPatchFunction · 0.85

Tested by

no test coverage detected