Forum

Author Topic: Agisoft PhotoScan on Amazon EC2 Instance c4.8xlarge. OpenCl error  (Read 6048 times)

miguel

  • Newbie
  • *
  • Posts: 5
    • View Profile
Good Morning,

I have one Amazon EC2 Instance c4.8xlarge.  Run on Linux Ubuntu 14.04 LTS

I installed it Agisoft 1.2.2. and the first line configurations of that machine is :

Agisoft PhotoScan Version: 1.2.2 build 2294 (64 bit)
OpenGL Vendor: Mesa project: www.mesa3d.org
OpenGL Renderer: Mesa GLX Indirect
OpenGL Version: 1.3 Mesa 4.0.4
Maximum Texture Size: 2048
Quad Buffered Stereo: not enabled
ARB_vertex_buffer_object: not supported
ARB_texture_non_power_of_two: not supported


I try to run all process to generate orthophoto and DTM with a python script.
The problem is that in the “Build Dense Cloud”process.  Agisoft send to me that message error:

“OpenCl not found”

The configurationfor “Build Dense Cloud” is”


Code: [Select]
#  2- Built dense cloud
quality = PhotoScan.Quality.HighQuality #   
filtering = PhotoScan.FilterMode.AggressiveFiltering

In the Menu tools/preferences windows. There aren't OpenCl devices.

In the other hand, when i try to do a manual process and i try to generate de “Build Dense Cloud” Agisoft  send the same message of error.

But when I open the  tools/preferences Windows and pass the mouse pointer over that window and I do nothing and close the window and I go and run the manual process over the “Build Dense Cloud”all is ok and Agisoft PhotoScan can generate the “Build Dense Cloud”.

I think that the EC2 instance have OpenCl, but Agisoft can’t recognize it.

So, I need to run the script but taking the “Build Dense Cloud”

Thanks.

Miguel

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Agisoft PhotoScan on Amazon EC2 Instance c4.8xlarge. OpenCl error
« Reply #1 on: January 11, 2016, 09:58:07 PM »
Hello Miguel,

When you successfully run dense cloud generation process, do you see any [GPU] lines in the Console pane output?

I think that after closing the OpenCL window PhotoScan saves information that there are no OpenCL devices and all the processing is performed on GPU. Maybe your code uses non-zero PhotoScan.app.gpu_mask?
Best regards,
Alexey Pasumansky,
Agisoft LLC

miguel

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Agisoft PhotoScan on Amazon EC2 Instance c4.8xlarge. OpenCl error
« Reply #2 on: January 18, 2016, 07:41:03 PM »
Hi Alexey,

Thanks for jour response.

Effectively when I close the OpenCL window PhotoScan saves information that there are no OpenCL
So i changed my code to 0
So that  line now is  PhotoScan.app.gpu_mask = 0  and all run pretty well!

But in other hand the console send to me a ligne error that say:

"renderer_gl.cpp line 399: drawText() failed, error 1283"

Effectively I can't see nothing on the screen (only a green screen).  So how to fix that error?
Thanks.


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Agisoft PhotoScan on Amazon EC2 Instance c4.8xlarge. OpenCl error
« Reply #3 on: January 19, 2016, 09:29:00 AM »
Hello Miguel,

It seems that Mesa GLX Indirect (software OpenGL renderer?) is not capable of dealing with dense clouds and polygonal meshes of the reasonable size.

So you can turn off "Switch to the model view by default" option in the Preferences window. At least you'll be able to save the rpoject and trasnfer it back to you local computer.
Best regards,
Alexey Pasumansky,
Agisoft LLC

miguel

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Agisoft PhotoScan on Amazon EC2 Instance c4.8xlarge. OpenCl error
« Reply #4 on: January 19, 2016, 09:49:24 PM »
Hello Alexey,

Thanks for the support. i did that.

But if you have one new idea let-me now.

Thanks,

Miguel

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Agisoft PhotoScan on Amazon EC2 Instance c4.8xlarge. OpenCl error
« Reply #5 on: January 19, 2016, 11:22:03 PM »
Hello Miguel,

I think it's the hardware issue related to the lack of the descrete graphic card.
Best regards,
Alexey Pasumansky,
Agisoft LLC

miguel

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Agisoft PhotoScan on Amazon EC2 Instance c4.8xlarge. OpenCl error
« Reply #6 on: January 22, 2016, 06:49:36 PM »
Hello,

I think the problem is in relationship with the GUI that I installed on the EC2 Ubuntu Server.  I think this GUI is limited.  So I will to try install a full GUI like over Ubuntu Desktop.

My configuration to access my ec2 Ubuntu server  over one shh connection is:

Code: [Select]
sudo apt-get install ubuntu-desktop
sudo apt-get install vnc4server
sudo apt-get install gnome-panel

and
 
gnome-session session = gnome-classic & gonme-panel&
gonme-panel&

And to see the GUI i use TightVNC for Windows v. 2.7.10

Thanks if you have suggestion to improve that.