Forum

Author Topic: VK Error : VkResult is "ERROR_INITIALIZATION_FAILED"  (Read 7983 times)

bbbares

  • Newbie
  • *
  • Posts: 21
    • View Profile
VK Error : VkResult is "ERROR_INITIALIZATION_FAILED"
« on: May 19, 2020, 12:11:07 AM »
I want to add texturing to my pipeline but when I run the script I get the following output to the command line:

Code: [Select]
BuildTexture: texture size = 4096, texture type = Diffuse map, source data = Images, blending mode = Mosaic, fill holes = 1, ghosting filter = 1, enable_gpu = 1, relaxed_precision = 1
Found 1 GPUs in 0.000973 sec (CUDA: 0.000223 sec, OpenCL: 0.000736 sec)
Using device: Tesla T4, 40 compute units, free memory: 14989/15109 MB, compute capability 7.5
  driver/runtime CUDA: 10020/6050
  max work group size 1024
  max work item sizes [1024, 1024, 64]
Initializing context...
Cannot use GPU. Reason: VK Error : VkResult is "ERROR_INITIALIZATION_FAILED" at line 59
Performing blending on CPU...
calculating mesh connectivity... done in 0.426329 sec
detecting outliers... ******************************************* done in 37.4896 sec
estimating quality... ******************************************* done in 48.2925 sec
blending textures...  ******************************************* done in 53.0495 sec
postprocessing atlas... done in 0.849618 sec

The texture result seemed to be of lower quality, but if this error is normal I would like to know.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15403
    • View Profile
Re: VK Error : VkResult is "ERROR_INITIALIZATION_FAILED"
« Reply #1 on: May 19, 2020, 12:13:01 AM »
Hello bbbares,

The result quality shouldn't depend on this message, the GPU processing failed, but the fallback to CPU worked.

Which OS and which NVIDIA driver version you are using? Probably drivers for Tesla do not properly support Vulkan.
Best regards,
Alexey Pasumansky,
Agisoft LLC

bbbares

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: VK Error : VkResult is "ERROR_INITIALIZATION_FAILED"
« Reply #2 on: May 20, 2020, 12:01:43 AM »
OS: Ubuntu 18.04.4

Nvidia Version: 440.59

edz

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: VK Error : VkResult is "ERROR_INITIALIZATION_FAILED"
« Reply #3 on: May 21, 2020, 04:36:02 PM »
I fixed this problem by installing the Vulkan SDK.  (there might be a simpler way by simply copying the ICD json, but this worked for me)

Instructions here: https://vulkan.lunarg.com/doc/sdk/1.2.135.0/linux/getting_started_ubuntu.html

As you'll see, for Ubuntu 18.04, just run these:


wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-bionic.list http://packages.lunarg.com/vulkan/lunarg-vulkan-bionic.list
sudo apt update
sudo apt install vulkan-sdk
« Last Edit: May 21, 2020, 04:39:03 PM by edz »