Hi! I’ve ran into some problems with Radeon RX 6900 XT graphic card, Ryzen9 5900X, 128G RAM, using slicer versions 4.11.20210226 and 4.13.0-2021-12-01.
The volumes seem to have stiched in wrong orders in 3D. There is no problem using Nvidia graphic cards 3090, 1080Ti and 1070 using same settings opening same files.
Another issue is regarding 3D volume rendering of different file sizes. The file shown in figure is around 11Gb. Certain files around 4-8Gb can not be rendered, nothing is shown in the 3D window when the volume rendering eye is clicked. Same is with all files I’ve tried between 12-16Gb. The same files are fine when rendered in Nvidia cards 3090 and 1080Ti. 3090 can render files larger than 24Gb.
Thanks for reporting, it can be hard to know when mixing different hardware and drivers will lead to trouble, particularly for large datasets where hardware limits might come into play. In this case it might be the dimensions of the volumes - maybe volumes that pass certain sizes in one dimension lead to this kind of issue.
Slicer delegates volume rendering to VTK, so the best way to document and perhaps fix these issues is to supply pure-VTK scripts and sample data the VTK developers with information about how to replicate the issues (exactly which card/driver combinations lead to the issues). See this thread for a somewhat similar issue. The issues may be fixable or they may at least be detectable so the user is warned of possible failure modes.
In the mean time, probably best is to use the CropVolume module to either resize or subset the volume of interest so that it can be rendered on the available hardware.
Stitching artifacts while rendering large volumes AMD GPUs can be solved by adjusting the number of partitions by copy-pasting a few lines of Python code as shown here:
I would recommend to go with NVidia if you need to render large volumes. Either AMD drivers are lower quality, or maybe NVidia drivers are just as bad but VTK is tested more with NVidia and so VTK contains more fixes or workarounds for NVidia bugs.
You could try cropping or resizing to see what sizes work, and see if you can work with any resolution loss. You might also be able to crop into two pieces and use the multivolume mode to show both, but there will probably be as seam where they abut.
When there’s a volume rendering issue like this it’s probably in the VTK layer. Best way to work towards a fix is to share a pure-VTK example that demonstrates the issue clearly and post it as a VTK issue. As a rule the VTK community wants everything to work well, but hardware/driver issues are known to be very hard to fix. Maybe there’s a workaround that could be applied in Slicer.
You might be able to start by dropping your data into an example like this:
Hi! Thank you for all helps! I have tested to restart after every setPartitions attempts and with eyes on and off. No difference seem to be noticed.
I have a general feeling it’s the driver of radeon rx 6900 xt which is the problem.
The file I have demonstrated is around 11Gb, it can be visualized, although not correctly.
I have tested another file around 7Gb, which cannot be visualized at all using GPU, nothing seemed to happen (CPU works slow but shows 3D correctly). Nvidia cards acted in the same way before 2019 Dec. A driver update after that date solved the problem. Hopefully AMD will eventually update their drivers and everything will work wonder I’ll give up for now.
@Hao_Li I was thinking to get an RX 6800 XT or 6900 XT for a project using also the VR module.
Might I ask if you are under Windows, or Linux, and if have had also the opportunity to test in VR
And finally you was using Normal or Adaptive quality.