If IR was compiled successfully, delete temp files.
My '/tmp' was full of '*.cl', '*.ll' files.
Now the temp files are gone, world is clean :)
Signed-off-by: Homer Hsing <homer.xing@intel.com>
Reviewed-by: Lu Guanqun <guanqun.lu@intel.com>
while (fgets(msg, sizeof(msg), pipe))
std::cout << msg;
pclose(pipe);
+ remove(clName.c_str());
// Now build the program from llvm
- return gbe_program_new_from_llvm(llName.c_str(), stringSize, err, errSize);
+ gbe_program p = gbe_program_new_from_llvm(llName.c_str(), stringSize, err, errSize);
+ remove(llName.c_str());
+ return p;
}
static uint32_t programGetKernelNum(gbe_program gbeProgram) {