zxy-git / waifu2x-converter-vs2015

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

waifu2x-converter-vs2015

I have add it to a visual studio 2015 project.

Now it can just generate w2xc.dll and this library works correctly with waifu2x-converter_x64.exe which is from http://int.main.jp/files/waifu2x-converter_x64_1130.zip

note:

  • modelHandler_CUDA.ptx20.h, modelHandler_CUDA.ptx30.h and modelHandler_OpenCL.cl.h are included in modelHandler_CUDA.cpp and modelHandler_OpenCL.cpp, but they do not appear in source files.

How to generate:

  • 1.use nvcc to compile modelHandler_CUDA.cu with argument -gencode=arch=compute_20,code="sm_20,compute_20" and -gencode=arch=compute_30,code="sm_30,compute_30" respectively to generate two different "modelHandler_CUDA.ptx", then rename them to modelHandler_CUDA.ptx20 and modelHandler_CUDA.ptx30

  • 2.compile conv.c(it had been added in the vsproject "text2array") then run it with arguments like "modelHandler_CUDA.ptx20 modelHandler_CUDA.ptx20.h str" to convert the text to a character array format.

About

License:Other


Languages

Language:C 81.1%Language:C++ 18.4%Language:Makefile 0.5%