waifu2x-converter-cpp icon indicating copy to clipboard operation
waifu2x-converter-cpp copied to clipboard

Kernel is keep creating on Linux

Open YukihoAA opened this issue 4 years ago • 0 comments

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";

YukihoAA avatar Apr 30 '20 18:04 YukihoAA