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

Function hfOpenReWrite

src/library/tools/tune/fileio.c:199–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199int
200hfOpenReWrite(HfInfo* hf, const char* filename)
201{
202 hf->hash = 0;
203 if (hf->file != NULL){
204 hfClose(hf);
205 }
206
207
208#ifdef _DEBUG_TOOLS
209 {
210 char* logName = hfCreateFullPatch(filename, "", "log");
211 hf->fileLog = fopen(logName, "a");
212 fprintf(hf->fileLog, " ====================== \n");
213 free(logName);
214 }
215#endif // _DEBUG
216 hf->file = fopen(filename, "rb+");
217 return FILE_OK;
218}
219
220int
221hfClose( HfInfo* hf )

Callers 1

saveBestParamFunction · 0.85

Calls 2

hfCloseFunction · 0.85
hfCreateFullPatchFunction · 0.85

Tested by

no test coverage detected