Version: 7.6.5
Output folder: C:\Program Files\Intel\HAXM
Extract: checktool.exe... 100%
Execute: C:\Program Files\Intel\HAXM\checktool.exe --verbose
CPU vendor * GenuineIntel
Intel64 supported * Yes
VMX supported - No
VMX enabled - No
EPT supported - No
NX supported * Yes
NX enabled * Yes
Hyper-V disabled - No
OS version * Windows 10.0.19042
OS architecture * x86_64
Guest unoccupied * Yes. 0 guest(s)
The system requirements are not satisfied.
My Processor doesn't support hardware virtualization, that's why it's getting error.
Thanks
enter image description here
Related
On Manjaro Linux.
Running Android Studio 3.6.3. Everything works great, but when I try to launch any emulator I am getting this error:
Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.1 APIs missing from device
I'm not having any driver issues outside of trying to use the Android Studio Emulator.
Studio SDK's installed:
Vulkan driver's installed:
I have Radeon's Vulkan mesa driver installed in manjaro. I also have virtualization enabled for processor in BIOS.
Manjaro Information:
System: Host: command Kernel: 5.4.40-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0
CPU: Topology: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP arch: Zen+ rev: 2 L2 cache: 4096 KiB
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
vendor: Micro-Star MSI driver: amdgpu v: kernel bus ID: 0a:00.0
Display: x11 server: X.org 1.20.8 driver: amdgpu resolution: <xdpyinfo missing>
OpenGL: renderer: Radeon RX 580 Series (POLARIS10 DRM 3.35.0 5.4.40-1-MANJARO LLVM 10.0.0) v: 4.6 Mesa 20.0.6
direct render: Yes
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
Details
What drivers/packages do I have to install in order to enable OpenCL over multiple platforms: CPU (Intel), Integrated GPU (Intel), Dedicated GPU (NVIDIA)?
It would be nice to have all platforms running OpenCL 1.2 or above
I know it is probably a simple fix, maybe just the right selection of libraries/SKDs, but I am having some trouble getting more them one platform to work.
Running ubuntu 14.04: I have a intel core I5 with the integrated intel graphics and a dedicated NVIDIA Geforce 710m board.
Resources I have used
https://wiki.tiker.net/OpenCLHowTo
Here (under Debian) it tells me that I only need:
Packages of ICD loaders: (you just need one of these)
Packages of ICDs
Package for headers
What I have already tried
Installed CUDA7.5 (yes for all)
Had a black screen due drivers conflics
Resolved by uninstalling all nvidia drivers and installing 352
Still left Cuda SDK install
From: How to make OpenCL work on 14.10 + Nvidia 331.89 drivers?
sudo apt-get install nvidia-331 nvidia-331-uvm nvidia-opencl-dev nvidia-modprobe
Those packages downgraded my drivers to 331 and 340
Also from: How to make OpenCL work on 14.10 + Nvidia 331.89 drivers?
Linked libraries with:
sudo ln -s /usr/include/nvidia-352/GL /usr/local/include
sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/local/lib/libOpenCL.so
OpenCL 1.1 worked for NVIDIA GPU
Could not get OpenCL 1.2, thus decided to uninstall 331 and 340 and install again 352
Installed 352 (again)
OpenCL 1.1 stopped working for NVIDIA GPU (and still does not work)
Installed Intel opencl_runtime_14.2_x64_4.5.0.8.tgz
Created a simbolic link to intel ICD with:
sudo ln -s /opt/intel/opencl-1.2-4.5.0.8/etc/intel64.icd
OpenCL 1.2 worked for CPU (and still works)
Installed clinfo sudo apt-get install clinfo
only intel CPU platform is detected
Tried to install several different NVIDIA packages to get NVIDIA GPU work again but had no luck with that
Installed packages and some information:
ICD in Vendors?
ls -l /etc/OpenCL/vendors/
total 4
-rw-r--r-- 1 root root 15 Out 22 2015 Altera.icd
lrwxrwxrwx 1 root root 45 Abr 28 13:48 intel64.icd -> /opt/intel/opencl-1.2-4.5.0.8/etc/intel64.icd
Note the missing nvidia.icd
CL and GL - GL had a valid link... now is IN RED
ls -l /usr/local/include
total 4
lrwxrwxrwx 1 root root 31 Abr 28 12:48 CL -> /usr/local/cuda-7.5/include/CL/
lrwxrwxrwx 1 root root 26 Abr 27 11:44 GL -> /usr/include/nvidia-352/GL (IN RED COLOR - folder doesn't exist anymore)
.so Files
ls -l /usr/local/lib/ | grep CL
lrwxrwxrwx 1 root root 40 Abr 27 11:45 libOpenCL.so -> /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
Installed packages
dpkg --get-selections | grep nvidia
nvidia-340 deinstall
nvidia-352 install
nvidia-libopencl1-340 deinstall
nvidia-libopencl1-340-updates deinstall
nvidia-libopencl1-352 deinstall
nvidia-libopencl1-352-updates install
nvidia-modprobe install
nvidia-opencl-icd-340 deinstall
nvidia-opencl-icd-352 deinstall
nvidia-prime install
nvidia-settings install
dpkg --get-selections | grep opencl
nvidia-libopencl1-340 deinstall
nvidia-libopencl1-340-updates deinstall
nvidia-libopencl1-352 deinstall
nvidia-libopencl1-352-updates install
nvidia-opencl-icd-340 deinstall
nvidia-opencl-icd-352 deinstall
ocl-icd-libopencl1:amd64 deinstall
ocl-icd-libopencl1:i386 deinstall
opencl-headers install
unity-scope-openclipart install
clinfo
clinfo
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 1.2 LINUX
Platform Name: Intel(R) OpenCL
Platform Vendor: Intel(R) Corporation
Platform Extensions: cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_spir cl_intel_exec_by_local_thread cl_khr_depth_images cl_khr_3d_image_writes cl_khr_fp64
Platform Name: Intel(R) OpenCL
Number of devices: 1
Device Type: CL_DEVICE_TYPE_CPU
Device ID: 32902
Max compute units: 4
Max work items dimensions: 3
Max work items[0]: 8192
Max work items[1]: 8192
Max work items[2]: 8192
Max work group size: 8192
Preferred vector width char: 1
Preferred vector width short: 1
Preferred vector width int: 1
Preferred vector width long: 1
Preferred vector width float: 1
Preferred vector width double: 1
Native vector width char: 16
Native vector width short: 8
Native vector width int: 4
Native vector width long: 2
Native vector width float: 8
Native vector width double: 4
Max clock frequency: 1800Mhz
Address bits: 64
Max memory allocation: 2040185856
Image support: Yes
Max number of images read arguments: 480
Max number of images write arguments: 480
Max image 2D width: 16384
Max image 2D height: 16384
Max image 3D width: 2048
Max image 3D height: 2048
Max image 3D depth: 2048
Max samplers within kernel: 480
Max size of kernel argument: 3840
Alignment (bits) of base address: 1024
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: Yes
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: No
Round to +ve and infinity: No
IEEE754-2008 fused multiply-add: No
Cache type: Read/Write
Cache line size: 64
Cache size: 262144
Global memory size: 8160743424
Constant buffer size: 131072
Max number of constant args: 480
Local memory type: Global
Local memory size: 32768
Error correction support: 0
Unified memory for Host and Device: 1
Profiling timer resolution: 1
Device endianess: Little
Available: Yes
Compiler available: Yes
Execution capabilities:
Execute OpenCL kernels: Yes
Execute native function: Yes
Queue properties:
Out-of-Order: Yes
Profiling : Yes
Platform ID: 0x1659390
Name: Intel(R) Core(TM) i5-3337U CPU # 1.80GHz
Vendor: Intel(R) Corporation
Device OpenCL C version: OpenCL C 1.2
Driver version: 1.2.0.8
Profile: FULL_PROFILE
Version: OpenCL 1.2 (Build 8)
Extensions: cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_spir cl_intel_exec_by_local_thread cl_khr_depth_images cl_khr_3d_image_writes cl_khr_fp64
So...
How can I get NVIDIA gpu to also show up as a OPENCL 1.2 (or higher) platform? How about the integrated intel graphics?
Would AMD libraries work with my hardware?
Why most of the nvidia packages are marked as deinstall?
As mentioned before, three things are necessary:
From https://wiki.tiker.net/OpenCLHowTo
Packages of ICD loaders: (you just need one of these)
Packages of ICDs
Package for headers
Thus for an Intel CPU and a NVIDIA GPU
Packages of ICD loaders:
ocl-icd-libopencl1
Packages of ICDs
Installed Intel OpenCL runtime
nvidia-opencl-icd-352
Package for headers
opencl-headers
However, to get it to work, it is necessary to make sure the packages are marked as install by dpkg --get-selections | grep opencl
sudo apt-get install --reinstall nvidia-opencl-icd-352 opencl-headers ocl-icd-libopencl1
On top of that, you must make sure that intel64.icd and nvidia.icd are in /etc/OpenCL/vendors (ls -l /etc/OpenCL/vendors).
That said, I had to link intel64.icd with:
cd /etc/OpenCL/vendors/
sudo ln -s /opt/intel/opencl-1.2-X.X.X.X/etc/intel64.icd
And, since nvidia.icd was not in the folder (even after the installation of the right package) I had to extract it and manually move from the deb package
dpkg -x /var/cache/apt/archives/nvidia-opencl-icd-352_352.63-0ubuntu0.14.04.1_amd64.deb ~/tempfolder
sudo mv ~/tempfolder/etc/OpenCL/vendors/nvidia.icd /etc/OpenCL/vendors/nvidia.icd
rm -r ~/tempfolder
Finally, make sure nvidia is the active GPU
sudo prime-select nvidia
sudo reboot -r now
Install and execute clinfo and both platforms should show-up.
clinfo
Number of platforms: 2
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 1.2 CUDA 7.5.23
Platform Name: NVIDIA CUDA
Platform Vendor: NVIDIA Corporation
Platform Extensions: cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 1.2 LINUX
Platform Name: Intel(R) OpenCL
Platform Vendor: Intel(R) Corporation
Platform Extensions: cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_spir cl_intel_exec_by_local_thread cl_khr_depth_images cl_khr_3d_image_writes cl_khr_fp64
I can't use Quartus 14.1.0 with Linux Debian (wheezy and Jessie) on my 64 bits computer.
If I launch it on console I've got this message :
user#fpgaformation:/opt/altera/14.1/quartus/bin$ ./quartus
Inconsistency detected by ld.so: dl-close.c: 743: _dl_close: Assertion `map->l_init_called' failed!
And the GUI is launched correctly.
But, after some minutes of using it, quartus disappear suddenly without message on terminal but with an altera problem-window.
In this window, we can get the following report :
Problem Details
Error:
*** Fatal Error: Segment Violation at (nil)
Module: quartus
Stack Trace:
0x68cd4: fwrite + 0x34 (c.so.6)
0x1205b: showit + 0x5b (curl.so.4)
0x12388: Curl_debug + 0xe8 (curl.so.4)
0x125ff: Curl_failf + 0xdf (curl.so.4)
0x910f: Curl_resolv_timeout + 0x12f (curl.so.4)
End-trace
Executable: quartus
Comment:
None
System Information
Platform: linux64
OS name: Debian GNU/Linux
OS version: 7
Quartus II Information
Address bits: 64
Version: 14.1.0
Build: 186
Edition: Web Edition
I use also QuartusII 14.0.0 which work well on the same computer.
I know that Altera does'nt support Debian officially (only RedHat) but if somebody has a clue ?
It's a known bug in Altera. They provided me a patch to correct it :
quartusii-14.1-0.19-linux.run
The patch can be found on altera support website :
rd01272015_37
I applied it and quartus work well now. I think they will publish this correction soon.
PC Config:
AMD Dual-core E-350 1.6Ghz
AMD 6310 HD Graphics Card
I'm running Ubuntu 14.04 on VMware Player on top of Windows 8 and trying to figure out if i can run OpenCL on ubunutu ie using VM.
I was reading a manual of how to install OpenCL and the first step gives this output. Can someone see the output and tell me what i should do? Can i run OpenCL on VM?
1)First,we need to check our system configuration to determine whether it is possible to install OpenCL in our machine. We can run the “Hardinfo” command on the terminal to get the complete summary of our system's configuration. If Hardinfo command is not installed in our system,then we can easily install it by the running the following command on the terminal: sudo apt-get install hardinfo
2)If our system can support OpenCL then we can go into the actual installation of OpenCL.
3)Download the Intel SDK for OpenCL Applications from Intel's web site.
.....
varun#varun-virtual-machine:/$ hardinfo
The program 'hardinfo' is currently not installed. You can install it by typing:
sudo apt-get install hardinfo
varun#varun-virtual-machine:/$ sudo apt-get install hardinfo
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
fglrx : Depends: fglrx-core but it is not installable
Recommends: fglrx-amdcccle but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
It is possible to run OpenCL in a virtual machine, but you will only have access to the CPU device.
The Intel SDK will not work, because it has strict hardware requirements, but the AMD SDK installs fine. I am running with AMD-APP-SDK-v2.8-RC-lnx64 on a Ubuntu 14.04 VM under Windows 8 + VirtualBox. You can get the SDK from here: http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/download-archive/
Since Ubuntu 18.04, all you need to get a version of OpenCL running on a CPU-only environment like a VM is:
sudo apt-get install libpocl2
Then clinfo will tell you, for example:
Number of platforms 1
Platform Name Portable Computing Language
Platform Vendor The pocl project
Platform Version OpenCL 1.2 pocl 1.4, None+Asserts, LLVM 9.0.1, RELOC, SLEEF, DISTRO, POCL_DEBUG
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix POCL
Platform Name Portable Computing Language
Number of devices 1
Device Name pthread-Intel(R) Core(TM) i7-7700HQ CPU # 2.80GHz
Device Vendor GenuineIntel
Device Vendor ID 0x6c636f70
Device Version OpenCL 1.2 pocl HSTR: pthread-x86_64-pc-linux-gnu-skylake
Driver Version 1.4
Device OpenCL C Version OpenCL C 1.2 pocl
Device Type CPU
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 8
Max clock frequency 2807MHz
Device Partition (core)
Max number of sub-devices 8
Supported partition types equally, by counts
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 4096x4096x4096
Max work group size 4096
Preferred work group size multiple 8
Preferred / native vector sizes
char 16 / 16
short 16 / 16
int 8 / 8
long 4 / 4
half 0 / 0 (n/a)
float 8 / 8
double 4 / 4 (cl_khr_fp64)
Half-precision Floating-point support (n/a)
Single-precision Floating-point support (core)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Address bits 64, Little-Endian
Global memory size 24638332928 (22.95GiB)
Error Correction support No
Max memory allocation 8589934592 (8GiB)
Unified memory for Host and Device Yes
Minimum alignment for any data type 128 bytes
Alignment of base address 1024 bits (128 bytes)
Global Memory cache type Read/Write
Global Memory cache size 6291456 (6MiB)
Global Memory cache line size 64 bytes
Image support Yes
Max number of samplers per kernel 16
Max size for 1D images from buffer 536870912 pixels
Max 1D or 2D image array size 2048 images
Max 2D image size 16384x16384 pixels
Max 3D image size 2048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 128
Local memory type Global
Local memory size 4194304 (4MiB)
Max number of constant args 8
Max constant buffer size 4194304 (4MiB)
Max size of kernel argument 1024
Queue properties
Out-of-order execution Yes
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 1ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels Yes
printf() buffer size 16777216 (16MiB)
Built-in kernels (n/a)
Device Extensions cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_3d_image_writes cl_khr_fp64 cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp64
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Portable Computing Language
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [POCL]
clCreateContext(NULL, ...) [default] Success [POCL]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name Portable Computing Language
Device Name pthread-Intel(R) Core(TM) i7-7700HQ CPU # 2.80GHz
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) Success (1)
Platform Name Portable Computing Language
Device Name pthread-Intel(R) Core(TM) i7-7700HQ CPU # 2.80GHz
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name Portable Computing Language
Device Name pthread-Intel(R) Core(TM) i7-7700HQ CPU # 2.80GHz
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.2.11
ICD loader Profile OpenCL 2.1
Tested:
WSL Ubuntu 20.04 on Windows
Ubuntu 18.04, 20.04 on Github Actions (Azure VMs)
Many thanks to the PoCL team for making this possible!
I have a laptop with Intel Core i5 M 450 # 2.40GHz which apparently has VT-x but not VT-d. I have Ubuntu 12.04 32bit but would like to have a virtual 64bit terminal-based Linux running on it. How do I know if the BIOS has this VT-x feature activated without having to reboot?
You can use rdmsr from msr-tools to read register IA32_FEATURE_CONTROL (address 0x3a). The kernel module msr has to be loaded for this.
On most Linux systems:
sudo modprobe msr
sudo rdmsr 0x3a
Values 3 and 5 mean it's activated.
You can use
sudo kvm-ok
from cpu-checker. On Intel, which has the most complicated logic, kvm-ok checks that if bit 0 of rdmsr 0x3a (the lock bit) is set, bit 2 (which allows virt use outside of SMX mode, something to do with trusted boot) must also be set. If the output of rdmsr 0x3a is anything but 1 or 3, you will be able to use kvm. kvm will set bit 2 of the msr if necessary, I expect virtualbox and the rest have the same logic.
Install cpu-checker and run "kvm-ok"
If the CPU is enabled, you should see something like:
INFO: /dev/kvm exists
KVM acceleration can be used
othewise
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm_intel
INFO: Your CPU supports KVM extensions
INFO: KVM (vmx) is disabled by your BIOS
HINT: Enter your BIOS setup and enable Virtualization Technology (VT),
and then hard poweroff/poweron your system
KVM acceleration can NOT be used
you can use:
sudo apt-get update
sudo apt-get install cpu-checker
kvm-ok
In linux you can check cpuinfo:
cat /proc/cpuinfo| egrep "vmx|svm"
I found that scai's answer doesn't work on my AMD Ryzen systems.
This however works really well for me, even on Intel:
if systool -m kvm_amd -v &> /dev/null || systool -m kvm_intel -v &> /dev/null ; then
echo "AMD-V / VT-X is enabled in the BIOS/UEFI."
else
echo "AMD-V / VT-X is not enabled in the BIOS/UEFI"
fi
(systool is found in the sysfsutils package on most distros.)
For Intel's VT-D / AMD's IOMMU, I came up with this solution:
if compgen -G "/sys/kernel/iommu_groups/*/devices/*" > /dev/null; then
echo "AMD's IOMMU / Intel's VT-D is enabled in the BIOS/UEFI."
else
echo "AMD's IOMMU / Intel's VT-D is not enabled in the BIOS/UEFI"
fi
(It even worked for me if the iommu kernel parameters are not set.)
A simple approach to confirm that Vt-D is enabled in the BIOS is through the Linux system. If the VT-D is enable in the BIOS and Iommu=on in the grub.cfg then the below folder structure is created automatically to hold the Virtual devices.
/sys/kernel/iommu_groups/0/devices/0000:00:00.0
Whereas if either one of the options VT-D or Iommu is not configured/enabled then the above mentioned folder structure is not created. This behavior is confirmed in CentOS 7.4 and Ubuntu. Hopefully this behavior is similar for other operating systems as well but this would need to be confirmed.