• virajwad's avatar
    vulkan: Add memory detection for Intel GPU using DXGI+PDH (#12664) · 220e133f
    virajwad authored
    * PDH free memory skeleton
    
    * Add PDH printing
    
    * Add LUID support for Vulkan
    
    * wire luid from ggml-vulkan to mem-dxgi-pdh file
    
    * Fix to ggml-impl
    
    * Continue skeleton
    
    * Implemented ggml_dxgi_pdh_get_device_memory
    
    * fix comments
    
    * Fix - change value GB to bytes
    
    * add ifdefs to only support windows and not linux
    
    * modify error codes
    
    * Finished ggml_dxgi_pdh_init() function
    
    * completed ggml_dxgi_pdh_release()
    
    * Formatting changes, add static to functions
    
    * fix build errors
    
    * fix go build error
    
    * fix luid - now should match between dxgi and vulkan
    
    * Fix the free memory reporting (was using copy by value, change to reference)
    
    * keep only dxgi1_2.h
    
    * Modifications based on PR feedback
    
    * fix merge conflicts (2) and fix desc1.description printout
    
    * move dxgi + pdh api calls to before the vendor specific library calls
    
    * change from 3 samples to 1 sample for PDH
    
    * modify when old_mode is set
    
    * add fix for building MacOS
    
    * fix release and returns for other vendors
    
    * add patch file
    220e133f
0031-Add-memory-detection-using-DXGI-PDH.patch 17.8 KB