Vulkan cannot find physical devices on windows 10 - windows

I am very new to the vulkan API and have been having problems with getting it working. When I run the vulkan SDK examples or attempt to run my own code, vulkan is unable to find any supported devices. I have attempted to completely reinstall my display drivers, a complete reinstall of the vulkan SDK, a manual install of the vulkan runtime and tried installing the beta version of the nvidia vulkan drivers. I am running an Nvidia GeForce GTX 1660 Ti which should support vulkan just fine. The driver version is 451.79 and the vulkan SDK version is 1.2.148.0.
When it comes to using my own code, I am able to succesfully create an instance and setup debug callbacks. The error comes in as soon as I attempt to use vkEnumeratePhysicalDevices. The callback prints out this error:
Vulkan Callback: [Loader Message] code: 0 : setupLoaderTrampPhysDevs: Failed during dispatch call of 'vkEnumeratePhysicalDevices' to lower layers or loader to get count.
Along with that error I immediately check if the device count is 0, which ends up being true.
I feel like I have a problem with my vulkan RT or vulkan SDK install but I can't figure out what it is. Any help is greatly appreciated!
EDIT: I have also tried running vulkaninfo and that does successfully find my GPU and lists information about it.

Related

Installing CUDA Windows 10

I am trying to install the CUDA toolkit in order to be able to use Thundersvm in my personal computer.
However I keep getting the following message in the GUI installer:
"You already have a newer version of the NVIDIA Frameview SDK installed"
I read in the CUDA forums that this most probably results from having installed Geforce Experience (which I have installed). So I tried removing it from the Programs and Features windows panel. However I still got the error, so my guess is that the "Nvidia Corporation" folder was not removed.
In the same question, they also suggested performing a custom install. However I could not find any information on how to do a custom install of the CUDA toolkit. I would really appreciate if someone could explain how to do this custom install or safely remove the previous drivers. I thought of using DDU but I read that sometimes it may actually lead to trouble.
I had the same problem while I was trying to get TensorFlow to use my NVIDIA GTX1070 GPU for calculations. Here's what allowed me to perform the CUDA Toolkit installation on my Windows 10 machine.
As the error message in the installer says - you already have a newer Frameview SDK installed. It was the case for me.
Go to Settings/Uninstall or modify programs.
Remove the NVIDIA Frameview program. It should be there with GeForce Experience, PhysX, etc.
Uninstalling only this NVIDIA program didn't cause any driver problems for my machine and I was able to progress through the CUDA Toolkit installation.
I just met the same problem and fixed it now.
This problem occurred because you chose the default installation configuration, which might contain many installed parts. In my situation, I have installed NVIDIA Nsight Compute, which is the culprit during the first few installs.
Unchecking the redundant parts should be helpful.

Error for Android Emulator: Deciding if GLDirectMem/Vulkan should be enabled

When I tried to run the project on Andriod Studio on mac, I got an internal error as below:
Andriod Emulator closed because of an internal error:
emuglConfig_init: blaclisted=0 has_guest_renderer=1
emuglConfig_init: auto-selected host based on conditions and UI preference 0
Deciding if GLDirectMem/Vulkan should be enabled.
Selected renderer: 1API level: 27 host GPU blacklisted?1
Host GPU selected, not enabling Vulkan because either API level is
Not enabling Vulkan here(Feature flag may be turned on manually)
Please look at the attached Screenshot of error for more details:
solution source-> https://stackoverflow.com/a/63244455/16412512
You can work around it as indicated here https://stackoverflow.com/a/59715169/1796802 :
Create the file ~/.android/advancedFeatures.ini (for Windows users path should be C:\Users\Dane.android\advancedFeatures.ini) with the following content:
Here's how to disable Vulkan apps to talk to the emulator.
# Add the following lines to ~/.android/advancedFeatures.ini (create this file if it doesn't exist already):
# Vulkan = off
# GLDirectMem = on
Currently, Andriod studio 3.5.1 doesn't support Intel UHD Graphics 630 1536 MB (MacBook 2019). Please find more information here.
For my case, I solved the issue by updating the "Android Emulator" to the latest version from Android Studio > Window > SDK Manager > SDK Tools (Ensure that Android Emulator is updated to the latest version).
In my case, I had to update/install my Intel VGA drivers. Although Nvidia was installed

installing intel opencl sdk but cannot find platform at clGetPlatformIDs

I want to install intel opencl sdk. And surely I did everything written in intel opencl installation guide in intel's website.
http://software.intel.com/en-us/articles/intel-sdk-for-opencl-applications-xe-2013-release-notes#_Installation_Notes
I did everything written in there but it doesn't work.
Specifically, I can compile the source but it cannot find the platform at clGetPlatformIDs function. error code is -1001 and there's no -1001 error code at cl.h file. If I uninstall, then I cannot compile at all naturally. It means there's error message at compile time that it cannot find lots of functions and defined values. After I install the opencl sdk then there's no message and compile properly. I think it means that install is done properly. But at runtime, it cannot find platform. What's the problem? I've been struggling about one week. Please help me..
---add---
I forgot to let you know my OS.. and so on;;
My OS is Red Hat Enterprise 6.3 (Santiago).
My CPU is Intel Xeon CPU E5-2690.
The code I tried have no problem at other machines and platforms.
Thanks.

OpenNI Mac OS X 10.8 Kinect times out

Currently I'm having some trouble with my kinect senor.
I installed the following libraries via homebrew:
libusb +universal (1.0.9)
sensor-kinect (0.91-5.1.0.25)
openni (stable-1.5.2.23)
NITE (1.5.2.21)
When I try to run the example Sample-NiSimpleRead located at sample/Bin/x64-Release from the openni framework the following error occurs after about 20 seconds:
UpdateData failed: A timeout has occurred when waiting for new data!
My kinect is model 1473.
I tried the steps in this post Kinect hangs up suddenly after working pretty well a few seconds. How can I fix it?
But my libfreenect library says that it found one device but couldn't open it.
Does anybody know how to fix this?
Since you mentioned you're not using an USB extension, this shouldn't be the issue.
I had issues with 10m ones. 5 and 7m active USB extensions worked fine though.
I was looking at the order of install, which is important: should be OpenNI/Nite then Sensor.
Also, for a Kinect with OpenNI you should use Avin's modified SensorKinect driver.
In conclusion try this:
Install OpenNI 1.5.4.0
Install Nite 1.5.2.21
Install Avin's SensorKinect
After you insall the above in that order, connect your sensor
and try to run of the samples(like NiSimpleViewer).
This should work(famous last words). If not, try to access another computer for a few minutes to test the same. This way you should have the sensor running at least on one computer and work out if the issue could be with the sensor or with the computer( and it's usb port/internal usb bus).
You shouldn't need libfreenect/libusb, but on osx you can use both at the same if you want, as long as you don't access the same sensor resources (so you can get accelerometer values from libfreenect and scene segmentation from openni)

'could not get wglGetExtensionsStringARB' for Android Emulator

Actually I have a problem with my Android application in eclipse. When I run my program, it gives me a message which is concluded of many errors.
So I copied and pasted them here to show you what is the exact problem with the emulator. Any ideas?
Starting emulator for AVD
Failed to create Context 0x3005
could not get wglGetExtensionsStringARB
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
Try setting the RAM to 512 Mb. It worked for me.
It may be too late to answer this question,but I solved the problem (could not get wglGetExtensionsStringARB) by installing the latest version of my graphics (video) driver.
also from device properties, I have checked 'use host GPU' option. it is working now with the following settings:
Try updating your graphic card driver
Graphics acceleration for the emulator takes advantage of your development computer's graphics hardware, specifically its graphics processing unit (GPU), to make screen drawing faster. To use the graphics acceleration feature, you must have the following versions of the Android development tools installed:
Android SDK Tools, Revision 17 or higher
Android SDK Platform API 15, Revision 3 or higher
Please check this link http://developer.android.com/tools/devices/emulator.html#acceleration
This is slightly edge case but my emulator started fine when I was physically at the computer that ran it but when I remoted into that computer (via RDP) and attempted to start the emulator, it failed with these errors.
I believe this is a limitation with the emulator software over remote connections because I went to the physical location of the computer and started the emulator and it worked fine.

Resources