Open YukihoAA opened 4 years ago
in linux, opencl kernel file is keep created without consider kernel is exists or not.
because, on existing check code, on L412 in modelHandler_OpenCL.cpp,
std::string bin_path = std::string(self_path) + "/" + dev_nameStr + ".bin";
but output bin path without root permission is L560
user_folder = std::string($Home) + "/.waifu2x"; bin_path = user_folder + "/" + dev_nameStr + ".bin";
user_folder = std::string($Home) + "/.waifu2x";
bin_path = user_folder + "/" + dev_nameStr + ".bin";
in linux, opencl kernel file is keep created without consider kernel is exists or not.
because, on existing check code, on L412 in modelHandler_OpenCL.cpp,
std::string bin_path = std::string(self_path) + "/" + dev_nameStr + ".bin";
but output bin path without root permission is L560
user_folder = std::string($Home) + "/.waifu2x";
bin_path = user_folder + "/" + dev_nameStr + ".bin";