Experimental TensorFlow GPU acceleration repository

Unfortunately, last I checked at least, DirectML had not been updated in at least a year, and was lacking support for operations used in RC Astro tools. Otherwise it would most likely be the right solution.

I've not tried ZLUDA – I don't have a machine I could test it on.
 
Unfortunately it is for me not clear which components are workable, but according to the GitHub the last update was 4 days ago, but I assume this doesn't mean it is release status.

Cheers
Tom
 
Hi. Thank you for your effort on this - it should certainly help a lot of people.

I hope to run with Cuda enabled under linux soon, but do not have time to try to make it work at present. I will be following your progress on this!

My current setup is a Lenovo TinkBook 15 G2 (i7-1165G) with on board MX450. Cuda acceleration sped up StarXTerminator from 10 minutes to 50 seconds with the MX450 running Tensorflow etc. As I already have this running under Windows, I will follow your advice, and not mess with it (well, that's what I _thought_!)

My main image processing machine crapped out (e5-2969, 64Gbyte RAM, GTX1660ti etc.) so I set about to repurpose the GPU and power supply. Ended up getting a handy eGPU (thunderbolt 4) adapter. FINALLY managed to get all the drivers etc. working. Last thing that helped was to install the latest Nvidia drivers in safe mode with the GTX1660ti already installed. Since then, it has worked very well so far. That said, the laptop now thinks it's got 3 GPU's (built in, MX450 and eGPU of GTX1660ti.)

The performance improvements are significant. Whilst I don't have Starnet installed, I do have StarXTerminator. As above, CPU only is 10 minutes which is rather long.... With MX450 Cuda (AI version 11 lite as MX450 only has 2Gbyte RAM) takes this down to 50 seconds - a huge increase in speed although using the AI 11 lite version.

With the GTX1660ti, this goes down to 20 seconds (same AI version - 11 lite). As the 1660ti has 6 Gbyte RAM, I can use the normal (not lite) AI version. This then takes 25 seconds, but at least I can run it.

I may be brave enough one day and try your scripts over the top of what I've got - would be interesting to see any differences. And am planning on doing a Linux install as well, and back to running PI under Linux, but really want to be sure I can get Cuda working there first.

Oh, yeah, have to disable the MX450 in order for the 1660ti to be used - small price to pay! And next time someone I know is 'upgrading their GPU', I might be able to pickup their dud 'old' one and put it to use...

Looking forward to seeing any updates.
 
Last edited:
I assume, this does not work with ATI RX graphics cards? I installed the update and all, but it says I'm using a "raster only graphics".
 
I assume, this does not work with ATI RX graphics cards? I installed the update and all, but it says I'm using a "raster only graphics".
I think you're referring to a startup PI message? That has nothing to do with whether you have GPU acceleration, which is something that PI doesn't use at this point.
 
I think you're referring to a startup PI message? That has nothing to do with whether you have GPU acceleration, which is something that PI doesn't use at this point.
Yes the startup message.
I got 2 systems , one with nvidia (RX3060Ti card and 12th gen intel cpu) and an older one I store my images and usually process it (AMD 5-3600+ RX 6600XT) , but I don't think it's working on my AMD system. It's very slow, just like not having any graphics cards. I tried resetting/updating/reloading the repositories, but it won't work regardless. I mean I understand - 1st world problems - I could just work on the other machine of course, but that means I would have to migrate all my images and install pixinsight and re-check all the files to install, because I don't have anything astrophotography stuff installed on that system.
 
Yes the startup message.
I got 2 systems , one with nvidia (RX3060Ti card and 12th gen intel cpu) and an older one I store my images and usually process it (AMD 5-3600+ RX 6600XT) , but I don't think it's working on my AMD system. It's very slow, just like not having any graphics cards. I tried resetting/updating/reloading the repositories, but it won't work regardless. I mean I understand - 1st world problems - I could just work on the other machine of course, but that means I would have to migrate all my images and install pixinsight and re-check all the files to install, because I don't have anything astrophotography stuff installed on that system.
The GPU acceleration only impacts the three Croman tools, though. Any other differences you are seeing in performance between the two systems is related to other features of those systems. Not to their graphics cards.
 
The GPU acceleration only impacts the three Croman tools, though. Any other differences you are seeing in performance between the two systems is related to other features of those systems. Not to their graphics cards.
Thanks! Beside the tools, interestingly the newer system isn't much faster than the older one. Running benchmarks the newer Intel+Nvidia system is ahead, but not by much really. Without seeing the benchmark scores, I wouldn't be able to tell. I actually prefer the AMD because it runs more silent and less heat and less power usage, but again, I don't want to go off topic here. The tools still work fine, just take a minute or 2 longer.
 
Just updated to build 1605 on RTX3060 windows PC. It removed, as per usual, BlurX, and Starnet2. I reinstalled both.
Tried both BlurX and Starnet2 on linear .xsif file (of galaxy NGC5754). GPU acceleration is gone. CPU cranks up to 90%-100%, just like it should when GPU acceleration is not enabled. I had backed up tensorflow file prior to updating PI, but I see it did not change the current file in PixInsight bin directory. I tried installing https://www.rc-astro.com/TensorFlow/PixInsight/GPU and realized it was already installed.
Many resets, power offs, complete removal (in control panel) and reinstall of PI build 1605. I also see GPU accel enabled in global preferences.
My only point here is that I'm so sick of this hacker crap. I have worked with computers and different OS since the 1980's for both business and personal use. The last 3 PI updates have all caused various problems.
I can follow directions. PixInsight is not reliable when updating the version and or build, and version/build updates are becoming more frequent.
As an end user, I must say that PI suffers extremely poor performance when executing updates. It makes me recall things like DOS 4.0...
P.S. I'll try GPU accel the old manual way after I get some sleep.
 
I had backed up tensorflow file prior to updating PI, but I see it did not change the current file in PixInsight bin directory. I tried installing https://www.rc-astro.com/TensorFlow/PixInsight/GPU and realized it was already installed.
This doesn't sound like you really followed directions. When you update to a new build, Pixinsight installs a tensorflow.dll, but that's not the one you want. Because this tensorflow.dll is not for GPU acceleration.
So, no matter what, after an upgrade you have to replace the tensorflow.dll and overwrite the one in the Pixinsight directory.
I also see GPU accel enabled in global preferences.
Yeah, you can enable that or disable that as long as you want, Pixinsight doesn't support CUDA (yet). I believe it's written there.
GPU acceleration is only supported by the XT-tools and Starnet2.

Cheers
Tom
 
This doesn't sound like you really followed directions. When you update to a new build, Pixinsight installs a tensorflow.dll, but that's not the one you want. Because this tensorflow.dll is not for GPU acceleration.
So, no matter what, after an upgrade you have to replace the tensorflow.dll and overwrite the one in the Pixinsight directory.

Yeah, you can enable that or disable that as long as you want, Pixinsight doesn't support CUDA (yet). I believe it's written there.
GPU acceleration is only supported by the XT-tools and Starnet2.

Cheers
Tom
Ah, of course, I must have done <insert any term> wrong. I did install the backup tensorflow.dll, as one of the many iterations that I tried, in order to troubleshoot the root cause of the problem. I also did see that the tensorflow.dll was the exact filesize, time and date after the 1605 install as prior to the install. I purposely checked for that dll in program files\pixinsight\bin directory because I was aware of BlurX, starnet2 needing to be reinstalled when PI update removes them. I can't believe it's impossible to code a solution that retains any process and script plugins that are installed prior to PI update. That would be the engineering solution to this problem. I'll figure it out eventually. I do maintain the position that PI update is not a robust process.

Take Care,
Ralph
 
Russ,

Can the Photoshop version of StarXTerminator be accelerated by replacing the tensorflow.dll in C:\Program Files\Common Files\RC-Astro\StarXTerminator with the GPU version that was installed in C:\Program Files\PixInsight\bin with this update?

BTW, the update worked great with my RTX 3080 Ti.

Thanks,

Behyar
 
Russ,

Can the Photoshop version of StarXTerminator be accelerated by replacing the tensorflow.dll in C:\Program Files\Common Files\RC-Astro\StarXTerminator with the GPU version that was installed in C:\Program Files\PixInsight\bin with this update?
This would likely work if ALL of the DLLs included in the repository are copied to that directory:

Code:
cublas64_11.dll
cublasLt64_11.dll
cudart64_110.dll
cudnn64_8.dll
cudnn_adv_infer64_8.dll
cudnn_cnn_infer64_8.dll
cudnn_ops_infer64_8.dll
cufft64_10.dll
curand64_10.dll
cusolver64_11.dll
cusparse64_11.dll
nvrtc64_112_0.dll
tensorflow.dll
zlibwapi.dll
 
This would likely work if ALL of the DLLs included in the repository are copied to that directory:

Code:
cublas64_11.dll
cublasLt64_11.dll
cudart64_110.dll
cudnn64_8.dll
cudnn_adv_infer64_8.dll
cudnn_cnn_infer64_8.dll
cudnn_ops_infer64_8.dll
cufft64_10.dll
curand64_10.dll
cusolver64_11.dll
cusparse64_11.dll
nvrtc64_112_0.dll
tensorflow.dll
zlibwapi.dll
Copying these into the folder did not improve the speed.
 
Back
Top