opencl: fix MSVC builds (string length error)
This commit is contained in:
parent
b25a4caaf4
commit
b41b6e679f
1 changed files with 3 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
import sys
|
||||
import logging
|
||||
logger = logging.getLogger("opencl-embed-kernerl")
|
||||
logger = logging.getLogger("opencl-embed-kernel")
|
||||
|
||||
|
||||
def main():
|
||||
|
@ -15,9 +15,8 @@ def main():
|
|||
ifile = open(sys.argv[1], "r")
|
||||
ofile = open(sys.argv[2], "w")
|
||||
|
||||
ofile.write("R\"(\n\n")
|
||||
ofile.write(ifile.read())
|
||||
ofile.write("\n)\"")
|
||||
for i in ifile:
|
||||
ofile.write('R"({})"\n'.format(i))
|
||||
|
||||
ifile.close()
|
||||
ofile.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue