<div dir="ltr"><div>Hi Steven,<br>Big dataset. I unfortunately do not have a 6 GB card at hand to test it, the maximum I have is a 3 GB card. I still believe it is a simple memory issue. I noticed that there were some checks missing so I have <a href="https://github.com/SimonRit/RTK/commit/6e040cbaf77a3105871f3f42721ef426806d000b" target="_blank">added them</a>. Could you try again with the attached script instead of the one you have sent? It does only one projection which will require less memory and it works on my 3 GB card with half your volume. With the full volume, it fails but the new checks describe the memory issue as expected. There have been some changes in the management of the memory indeed and it will now create the full stack in the GPU memory with the example you sent. Streaming should be possible, we can work on it after you confirm it is a memory issue if you want.<br>
About the aliasing, I noticed that your voxels are finely resolved. I have tried to change the hard-coded value "float t_step = 1" to 0.1 in rtkCudaForwardProjectionImageFilter.cxx and it removes them. I have now <a href="https://github.com/SimonRit/RTK/commit/fb62489657397df2c9f6d1d1bf0711bbc8fd7673">made that configurable</a> through the option --step of rtkforwardprojections.<br>
Simon<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 17, 2014 at 11:09 PM, Steven Pollmann <span dir="ltr"><<a href="mailto:spollmann@robarts.ca" target="_blank">spollmann@robarts.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello RTK Users,<br>
<br>
We have noticed some problems with RTK's forward projection software (rtkForwardProjections) using CUDA. Originally, using a build we have been using from July 2013 (v1,0 rc3, commit ID 2dabe6a04cf33c0da45907efdf03d427b4473adc dated July 03, 2013), GPU Forward Projection would complete, but would leave some sort of aliasing artifacts in the projections that were not present when rtkForwardProjections was run using only the CPU methods (Joseph method, or RayCastInterpolator, changing --method commandline option, at the time).<br>
<br>
The next time we tried using a newer build of openRTK to perform some forward projections using the GPU/CUDA was later in the year. However, I believe some CUDA memory management changes were made, and a forward projection could no longer be attempted due to running out of memory (and rtkForwardProjections being unable to chunk. or split up the volume to forward project). (Our GPU at the time was an Nvidia GTX 770 with 4GB vram).<br>
<br>
More recently, we acquired an Nvidia GTX Titan Black with 6GB vram, running driver version 337.25 on Xubuntu 14.04, and I attempted a forward projection using the latest OPENRTK (v1.0.0, July 10, 2014 commit 8646fbdc3b01b439ae37c1d7084e2e68d155c3a5). We no longer get the "out of memory" errors (this build still causes the GTX770 to complain of memory), but rather a Segmentation Fault when trying to do the forward projection. The Segmentation Fault occurs after it has read in the 3D Volume, when it is "Projection Volume...". The failure is immediate. Again, if using just the CPU to do the forward projections, everything seems to work fine.<br>
<br>
Anyhow, I was wondering if anyone had any insight into this issue?<br>
<br>
Our scanners produce fairly large volumes (1024x1024x680) that we are interested in performing some iterative reconstructions on.<br>
<br>
I've uploaded a sample dataset (a Rubiks Cube volume) onto Google drive at the following link. Due to the rtkForwardProjections program being unable to "chunk", or "divide" the dataset, I think you would need a substantial amount of video memory (6GB or more) to test this dataset, and experience the Segmentation Fault.<br>
<br>
<a href="https://drive.google.com/folderview?id=0B2rwn1Vax7UydVhudHlSZGlXVDQ&usp=sharing" target="_blank">https://drive.google.com/folderview?id=0B2rwn1Vax7UydVhudHlSZGlXVDQ&usp=sharing</a><br>
<br>
There, you should be able to download the Rubiks MHD and Raw Volume file, the Geometry File, and a script file containing the forward projection commands we are using.<br>
<br>
Let me know if any other information would be useful.<br>
<br>
Thanks!<br>
<br>
Steve<br>
_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com">Rtk-users@public.kitware.com</a><br>
<a href="http://public.kitware.com/mailman/listinfo/rtk-users" target="_blank">http://public.kitware.com/mailman/listinfo/rtk-users</a><br>
</blockquote></div><br></div>