| 138 | } |
| 139 | |
| 140 | bool |
| 141 | initReadingData(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 | |
| 162 | int |
| 163 | getGranularityInfo( |
no test coverage detected