ubuntu:gpu:vulkan:vulkan_try_new_version
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:gpu:vulkan:vulkan_try_new_version [2023/08/02 23:49] – peter | ubuntu:gpu:vulkan:vulkan_try_new_version [2023/08/03 00:14] (current) – peter | ||
---|---|---|---|
Line 38: | Line 38: | ||
cmake --build . | cmake --build . | ||
</ | </ | ||
+ | |||
+ | or for tests... | ||
<code bash> | <code bash> | ||
Line 46: | Line 48: | ||
</ | </ | ||
- | or | + | or for install... |
<code bash> | <code bash> | ||
Line 64: | Line 66: | ||
cmake --build . | cmake --build . | ||
</ | </ | ||
+ | |||
+ | * **CMAKE_BUILD_TYPE**: | ||
+ | * **VULKAN_HEADERS_INSTALL_DIR**: | ||
+ | * **CMAKE_INSTALL_PREFIX**: | ||
+ | * The default value for CMAKE_INSTALL_PREFIX is /usr/local, which would be used if you do not specify CMAKE_INSTALL_PREFIX. | ||
+ | * Setting CMAKE_INSTALL_PREFIX to /tmp/build causes the loader to search / | ||
+ | * The loader also searches the " | ||
+ | * Then run make install as before, which will install the files in /tmp/build <code bash> | ||
</ | </ | ||
Line 114: | Line 124: | ||
LD_LIBRARY_PATH=/ | LD_LIBRARY_PATH=/ | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Test ===== | ||
+ | |||
+ | A test suite for the Vulkan loader. | ||
+ | |||
+ | <code bash> | ||
+ | ctest | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | Test project / | ||
+ | Start 1: Allocation.Instance | ||
+ | 1/538 Test #1: Allocation.Instance ............................................................................. | ||
+ | Start 2: Allocation.GetInstanceProcAddr | ||
+ | 2/538 Test #2: Allocation.GetInstanceProcAddr .................................................................. | ||
+ | Start 3: Allocation.EnumeratePhysicalDevices | ||
+ | 3/538 Test #3: Allocation.EnumeratePhysicalDevices ............................................................. | ||
+ | Start 4: Allocation.InstanceAndDevice | ||
+ | 4/538 Test #4: Allocation.InstanceAndDevice .................................................................... | ||
+ | Start 5: Allocation.InstanceButNotDevice | ||
+ | 5/538 Test #5: Allocation.InstanceButNotDevice ................................................................. | ||
+ | Start 6: Allocation.DeviceButNotInstance | ||
+ | ... | ||
+ | ... | ||
+ | 100% tests passed, 0 tests failed out of 538 | ||
+ | |||
+ | Total Test time (real) = 10.89 sec | ||
</ | </ | ||
ubuntu/gpu/vulkan/vulkan_try_new_version.1691020170.txt.gz · Last modified: 2023/08/02 23:49 by peter