I’m quite new to Python and I have to handle data files around 20GB. Currently I want to understand if it is possible to write any Python code (like below) and run it on the GPU. Actually I just need to open that files, make something like:
file=open(fnTar,"w")
for iLine in List:
iLine=iLine.replace(“\\”,””)
file.write(iLine)
file.close()
I know there are high level API’s like Dask to handle large files much more efficient, but in the future I also need to manipulate the data in a different way (some calculations). Is it possible to run such code on the GPU without changes of the original script? Something like:
Run this on GPU:
file=open(fnTar,"w")
for iLine in List:
iLine=iLine.replace(“\\”,””)
file.write(iLine)
file.close()
My understanding is that even using CUDA needs some additional changes of the code and in case of using modules like numpy you have to find a equivalent module developed for CUDA. So that is maybe also not the simple and quick solution I'm looking for.