Forum

Author Topic: Low GPU Usage during Dense Cloud creation  (Read 10516 times)

Kjellis85

  • Full Member
  • ***
  • Posts: 220
  • Archaeological field supervisor
    • View Profile
    • Contact information at University of Tromsø
Low GPU Usage during Dense Cloud creation
« on: July 07, 2011, 07:33:25 PM »
I have observed that my gpu is not being pushed to it's limit, but is being utilized rather minimally. My cpu is running at close to full speed. I have turned on open cl and disabled two cores.

Specs:
ASUS GTX570 DirectCU II
AMD Phenom II X6 1090t
12 GB 1600 DDR3

olihar

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Re: minimal gpu usage
« Reply #1 on: July 07, 2011, 11:30:21 PM »
You know that the GPU is only used on the meshing part...

Kjellis85

  • Full Member
  • ***
  • Posts: 220
  • Archaeological field supervisor
    • View Profile
    • Contact information at University of Tromsø
Re: minimal gpu usage
« Reply #2 on: July 08, 2011, 05:39:00 PM »
Yes, i know that, but it is still only using ca. 15-20% at most during that process... What I am asking is whether or not this is to be expected or not.

Kjellis85

  • Full Member
  • ***
  • Posts: 220
  • Archaeological field supervisor
    • View Profile
    • Contact information at University of Tromsø
Re: minimal gpu usage
« Reply #3 on: July 08, 2011, 10:50:12 PM »
Did some more tests and it turns out it is using the gpu a lot more than I thought at first. My first runs where on small models with low settings, which might be the reason why it didn't apply the gpu more. The one I am running now is on a large set (111 images) with high alignment and medium "mesh". It is drawing around 75% of the gpu and 85% across all six cores.

RossFS

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: minimal gpu usage
« Reply #4 on: July 12, 2011, 02:44:24 AM »
Kjellis85 - what are you using to measure how much the GPU is being utilised?
Also, if you click on View-> Output and watch the output from the console for PhotoScan you can see what the software assesses the performance of your CPU and your GPU to be (Device 1 and Device 2).

CommanderLake

  • Newbie
  • *
  • Posts: 4
    • View Profile
GTX1080 utilization
« Reply #5 on: September 23, 2016, 06:01:17 AM »
The utilization graph of my GTX1080 while using Photoscan is very spiky and far from optimal, how can I make Photoscan give it more work?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: GTX1080 utilization
« Reply #6 on: September 23, 2016, 11:45:36 AM »
Hello CommanderLake,

At the moment GPU can be utilized only during the depth maps estimation (the first phase of building the dense cloud), also it should be checked on in the OpenCL tab of PhotoScan Preferences window.
During the processing you'll see the following lines in the console:
Quote
2016-09-22 22:46:14 [GPU] estimating 760x1703x128 disparity using 760x852x8u tiles, offset 0
2016-09-22 22:46:14 timings: rectify: 0.15 disparity: 0.274 borders: 0.065 filter: 0.081 fill: 0
2016-09-22 22:46:15 [GPU] estimating 594x1704x128 disparity using 594x852x8u tiles, offset -39
2016-09-22 22:46:15 timings: rectify: 0.105 disparity: 0.163 borders: 0.056 filter: 0.073 fill: 0
2016-09-22 22:46:15 [GPU] estimating 659x1101x128 disparity using 659x1101x8u tiles, offset -12
2016-09-22 22:46:15 timings: rectify: 0.039 disparity: 0.124 borders: 0.073 filter: 0.04 fill: 0
and when the depth maps computation procedure ends you'll get the similar output in the Console pane:
Quote
2016-09-22 22:48:10 finished depth reconstruction in 11604.8 seconds
2016-09-22 22:48:10 Device 1 performance: 141.962 million samples/sec (CPU)
2016-09-22 22:48:10 Device 2 performance: 749.18 million samples/sec (GeForce GTX 1080)
2016-09-22 22:48:10 Total performance: 891.141 million samples/sec
Best regards,
Alexey Pasumansky,
Agisoft LLC

CommanderLake

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: GTX1080 utilization
« Reply #7 on: September 23, 2016, 12:05:22 PM »
I understand that but if you look at the GPU usage in PrecisionX or something similar the graph shows sharp spikes with gaps in between probably because it completes each step its given so quickly, cant the GPU be given more of them steps at a time to increase the utilization?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: GTX1080 utilization
« Reply #8 on: September 23, 2016, 12:08:31 PM »
Hello CommanderLake,

If the project is small or you are using lower quality for the dense cloud processing, the behavior can be like you've got. For higher quality settings and large projects the GPU utilization should be more uniform, but still it wouldn't be a constant level.
Best regards,
Alexey Pasumansky,
Agisoft LLC

CommanderLake

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: GTX1080 utilization
« Reply #9 on: September 23, 2016, 12:13:23 PM »
Its still very spiky with a large project and a high dense point cloud setting the GPU just needs to be fed more work in parallel.

CommanderLake

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: GTX1080 utilization
« Reply #10 on: September 23, 2016, 04:06:36 PM »
Heres the GPU usage while computing a dense point cloud set on high with 232 images with a resolution of 5376x3572.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: GTX1080 utilization
« Reply #11 on: September 26, 2016, 07:43:13 PM »
Hello CommanderLake,

We hope to make some improvements for the next update for more uniform GPU utilization. It should also improve the processing performance for the stage.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: GTX1080 utilization
« Reply #12 on: October 18, 2016, 04:02:10 PM »
Hello CommanderLake,

For testing purposes I can suggest to compare the performance of the version 1.2 and pre-release of the version 1.3 (http://www.agisoft.com/forum/index.php?topic=5976.0) running on the same NVIDIA drivers (all CPU cores can be unchecked in the OpenCL tab).
Best regards,
Alexey Pasumansky,
Agisoft LLC

CamMakoJ

  • Newbie
  • *
  • Posts: 15
    • View Profile
Low GPU Usage during Dense Cloud creation
« Reply #13 on: January 24, 2017, 07:46:18 PM »
I have a new setup: i7-7700k, GTX 1080, 64gb ram, and raid 0 ssd's. Currently during the dense cloud i was getting low GPU usage (22% average) with sharp spikes and drops during the first phase of the dense cloud. During the second phase im getting ~2% usage on average. It seems like processing is taking too long... but maybe im just being impatient

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Low GPU Usage during Dense Cloud creation
« Reply #14 on: January 24, 2017, 07:51:36 PM »
Hello CamMakoJ,

Can you please try version 1.3 (even in Demo mode): http://www.agisoft.com/forum/index.php?topic=5976.0

In version 1.2 GPU is used only for the depth maps calculation (first sub-step of dense cloud generation), in the version 1.3 it is also utilized for feature point detection and  image matching.
Best regards,
Alexey Pasumansky,
Agisoft LLC