frohzinn's picture
download
raw
477 Bytes
#
import sys
import logging
logger = logging.getLogger("opencl-embed-kernel")
def main():
logging.basicConfig(level=logging.INFO)
if len(sys.argv) != 3:
logger.info("Usage: python embed_kernel.py <input_file> <output_file>")
sys.exit(1)
ifile = open(sys.argv[1], "r")
ofile = open(sys.argv[2], "w")
for i in ifile:
ofile.write('R"({})"\n'.format(i))
ifile.close()
ofile.close()
if __name__ == "__main__":
main()

Xet Storage Details

Size:
477 Bytes
·
Xet hash:
8ee7dbbba3d3b350b6d72cff8a2cc833f23722d066a5cd264f600ca7873eb3ec

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.