Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/src/ggml-sycl/sycl_hw.hpp # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / src / ggml-sycl / sycl_hw.hpp` 38 lines ยท 987 bytes Raw Blame History 1 #ifndef SYCL_HW_HPP 2 #define SYCL_HW_HPP 3 4 #include 5 #include 6 #include 7 #include 8 9 #include 10 11 namespace syclex = sycl::ext::oneapi::experimental; 12 using gpu_arch = sycl::ext::oneapi::experimental::architecture; 13 14 // It's used to mark the GPU computing capacity 15 // The value must flow the order of performance. 16 enum sycl_intel_gpu_family { 17 GPU_FAMILY_UKNOWN = -1, 18 // iGPU without Xe core, before Meteor Lake iGPU(Xe) 19 GPU_FAMILY_IGPU_NON_XE = 0, 20 // iGPU with Xe core, Meteor Lake iGPU or newer. 21 GPU_FAMILY_IGPU_XE = 1, 22 // dGPU for gaming in client/data center (DG1/FLex 140 or newer). 23 GPU_FAMILY_DGPU_CLIENT_GAME = 2, 24 // dGPU for AI in cloud, PVC or newer. 25 GPU_FAMILY_DGPU_CLOUD = 3 26 }; 27 28 struct sycl_hw_info { 29 syclex::architecture arch; 30 const char* arch_name; 31 int32_t device_id; 32 std::string name; 33 sycl_intel_gpu_family gpu_family; 34 }; 35 36 sycl_hw_info get_device_hw_info(sycl::device *device_ptr); 37 38 #endif // SYCL_HW_HPP