Russ also has the directions on his site for simply doing the CUDA toolkit installation, which is very easy and straightforward and creates a proper CUDA installation on your system, at which point all you have to concern yourself with in the future is keeping a copy of the CUDA enabled tensorflow DLL on hand to put back into the PI bin directory after updates. Personally I think this is the best approach to use.It appears someone else had a similar problem that I had with the repository not installing all of the files.
I have been using Pixlnsight for a while and always used the Cuda Core script to have my GPU (rtx3060) boost the performance of the RC Astro add-ons (blur, noise and starX) but since i have updated to 1.9.0, my GPU is running at 0% and the RC tools are seriously slow.
I have tried looking for updates as usual but none found. Anyone have any updates on this? Or a updated script?
Win11
Rtx3060 gpu
Ryzen 5 5600G cpu
128Gb 3600mhz RAM
- Bikes4life
- Replies: 2
- Forum: Support Questions
I replied with what I think is the best solution of putting everything into another directory (including the tensorflow.dll) and adding the path to it. I've discussed this with Russ and he's considering making a script or similar to automate this process.
Lamar
How did you replace the tensorflow DLL? The one that PI installs is CPU only, and you need to use the correct GPU version in order to work properly with the RC tools. Which you can get here: https://www.tensorflow.org/install/lang_cHi,
I installed 1.9.2 and since then I have a problem with CUDA.
When I launch BlurX* for example, Pixinsight closes with the message that it has stopped working.
I replaced my old tenserflow.dll thinking that it was perhaps no longer up to date. Now it does not crash anymore but it does not use the GPU at all...
Any idea what I can do to make it work again?
I uninstalled PI, the updates, reinstalled everything. I updated my GPU, I restarted.
Now I'm stuck![]()
Thanks for your help.
PS: It works perfectly fine with Gra*pert or Starne*
Motherboard: Asus Prime X570
Processor: AMD Ryzen 9 3900X 12-Core 3.80GHz
RAM: 32go
Windows 10 Pro x64
GPU: nvidia Geforce RTX 2080 SUPER 8go
Pixinsight 1.9.2
How did you replace the tensorflow DLL? The one that PI installs is CPU only, and you need to use the correct GPU version in order to work properly with the RC tools. Which you can get here: https://www.tensorflow.org/install/lang_c
I'm not sure what happens when you mix-and-match a proper CUDA installation and Russ's tool. They put files in different places, and might interact badly. I'd probably clean things out, make sure there are no CUDA files installed in PI folders (which you could do with a re-install of PI), then confirm (and repair as necessary) the regular CUDA installation, as described on the RC site.Before updating PI, I copied my tenserflow.dll elsewhere (which was working fine) and pasted it again in the bin folder after the update.
And now neither the old way or the experimental way works. But only with the RC.
So, I thought my tensorflow was outdated and I follow the link on RC and yours too, to download a recent one. But it didn't change anything. So basically, now, nothing works with cuda regarding the RC tools
I thought of downloading the same tenserflow I had when I installed cuda years ago. It was 2.3 I think with cuda 10.1. But I can't find it and I don't know if it will change something.
Okay, it works. I deleted everything about CUDA and made a new install with 11.8.I'm not sure what happens when you mix-and-match a proper CUDA installation and Russ's tool. They put files in different places, and might interact badly. I'd probably clean things out, make sure there are no CUDA files installed in PI folders (which you could do with a re-install of PI), then confirm (and repair as necessary) the regular CUDA installation, as described on the RC site.
I gather that Russ's utility doesn't do a normal CUDA installation, but populates the PI bin folder with the necessary CUDA files that would normally live under Program Files. And that does appear to work... but I can see how it might be an issue that also has a normal CUDA toolkit installation.Okay, it works. I deleted everything about CUDA and made a new install with 11.8.
I don't know what was the problem, if it is a compatibilyty issue with PI 1.9 or if the files interacted in a bad way (it was not the case before the update). But it works!
Just one question: I thought the experimental method was to not have to replace the tenserflow when major update. So it means you already have cuda on, no?
I have installed CUDA on a kubuntu system some time ago, updated to luvuntu 24.04 and currently use RC Astro’s tools on PI Lockhart so it seems compatible with a Linux based CUDA toolkit installation.I gather that Russ's utility doesn't do a normal CUDA installation, but populates the PI bin folder with the necessary CUDA files that would normally live under Program Files. And that does appear to work... but I can see how it might be an issue that also has a normal CUDA toolkit installation.
Luvuntu should be kubuntu. Apologies.I have installed CUDA on a kubuntu system some time ago, updated to luvuntu 24.04 and currently use RC Astro’s tools on PI Lockhart so it seems compatible with a Linux based CUDA toolkit installation.
I added your GPU repository and everything seems to work fine including BTX and NTX.I finally got around to preparing a repository containing the CUDA/cuDNN software libraries needed to enable GPU acceleration of AI-based tools. This didn't used to be possible due to onerous license restrictions, but those have since been relaxed a bit.
This is for Windows only at the moment: if this goes well I'll work on the Linux version. This isn't needed for MacOS users – the "CoreML" library provided by Apple is used, so Mac users with capable hardware get GPU acceleration of RC Astro tools out of the box.
THIS IS EXPERIMENTAL – please READ this post completely, and proceed at your own risk. I can only test on a small number of hardware configs. I recommend backing up your PixInsight installation so you can roll back if it goes sideways. At the very least make a copy of the existing tensorflow.dll file in PI's bin directory – putting that back and restarting PI should effectively revert.
There is a second repository to revert to CPU-only operation if something goes wrong. In the worst case, you may have to re-install PixInsight. Please roll with this if it happens, and provide kind feedback so I can try to fix it.
You need a capable NVIDIA GPU. This means one with ≥ 2GB of RAM and compute capability ≥ 3.5. Check this NVIDIA page if in doubt about your GPU's capabilities. You'll need at least several GB of free disk space.
The GPU repository installs version 2.10 of the "GPU-only" version of tensorflow.dll. On the TensorFlow project page, it clearly says "GPU only," but in my testing it ran in CPU-only mode just fine if there was no GPU installed. I have no idea if this will be the case on every machine. Along with the TensorFlow library, the necessary CUDA/cuDNN libraries (version 11.8) and the zlib compression library (version 1.2.3.0) are installed.
The CPU repository installs version 2.10 of the CPU-only build of tensorflow.dll.
These libraries are all the property of the respective organizations that created them. They are distributed via these repositories for use with PixInsight/RC Astro tools only in accordance with relevant license agreements. You can find these agreements in PI's etc/legal/licenses directory after installation.
To proceed, add the following to your PI repository list using Resources -> Updates -> Manage Repositories:
Then run Resources -> Updates -> Check for Updates, proceed with the download (be patient – it's a 1.5GB package), and then quit PI to complete the update. You should now enjoy GPU acceleration of RC Astro tools. This should "just work." No environment variables to set unless you want to constrain TensorFlow to only use as much GPU memory as needed (see the notes about TF_FORCE_GPU_ALLOW_GROWTH here). I've had limited success getting that setting to actually work – TensorFlow is very GPU-memory-grabby.
If it doesn't work – running BXT/NXT/SXT causes a crash or doesn't use the GPU – let me know your hardware details, PI version, OS version, etc., and the full text of any error messages. If you manage to get things working where others have not, please share.
You can revert to the CPU-only tensorflow.dll by changing the repository entry to
and going through the update process again. If you want to revert yet again to the GPU version, you'll need to change the repo entry again AND do a Resources -> Updates -> Reset Updates.
Thanks for testing... let me know how it goes!
Who is "they"? PixInsight doesn't use GPU processing, so it doesn't attempt to install anything. And shouldn't. And the RC tools don't depend upon it, so it's always been the responsibility of users to install the CUDA tools if they wanted the speed advantage. Really, a minor "hack". Russ figured out a way to automate this for his third party tools, and only with Windows so far.Hi Cropduster
I am in the same boat, having spent hours on getting the GPU to run. In the end, I think it would be great if they. came out with an automated repository install for this type of thing, like they do for Windows/RC Astro plugins. The time would have been better spent learning PU for me.
Clear Skies,
Paul
PI does not use GPU acceleration at all. There is no reason to install it (which requires hacking the PI installation) unless you intend to run the RC tools.Cloudbait, I dont use the RC Astro tools, and I am not familiar with them. My apologies for my ignorance on the subject. I assumed the tools were using GPU acceleration. I meant RC Astro by they.
Hope that helps,
Paul