|
|
@@ -199,7 +199,7 @@ struct sycl_device_info {
|
|
|
// size_t smpb; // max. shared memory per block
|
|
|
bool vmm; // virtual memory support
|
|
|
size_t total_vram;
|
|
|
- sycl_hw_info hw_info;
|
|
|
+ //sycl_hw_info hw_info; \\ device id and aarch, currently not used
|
|
|
optimize_feature opt_feature;
|
|
|
};
|
|
|
|
|
|
@@ -286,29 +286,6 @@ struct ggml_tensor_extra_gpu {
|
|
|
|
|
|
void release_extra_gpu(ggml_tensor_extra_gpu * extra, std::vector<queue_ptr> streams={});
|
|
|
|
|
|
-inline optimize_feature check_gpu_optimize_feature(syclex::architecture &arch) {
|
|
|
- optimize_feature opt;
|
|
|
-
|
|
|
- opt.reorder =
|
|
|
- (arch == syclex::architecture::intel_gpu_dg1 ||
|
|
|
- arch == syclex::architecture::intel_gpu_acm_g10 ||
|
|
|
- arch == syclex::architecture::intel_gpu_acm_g11 ||
|
|
|
- arch == syclex::architecture::intel_gpu_acm_g12 ||
|
|
|
- arch == syclex::architecture::intel_gpu_pvc ||
|
|
|
- arch == syclex::architecture::intel_gpu_pvc_vg ||
|
|
|
- arch == syclex::architecture::intel_gpu_mtl_u ||
|
|
|
- arch == syclex::architecture::intel_gpu_mtl_s ||
|
|
|
- arch == syclex::architecture::intel_gpu_mtl_h ||
|
|
|
- arch == syclex::architecture::intel_gpu_arl_u ||
|
|
|
- arch == syclex::architecture::intel_gpu_arl_s ||
|
|
|
- arch == syclex::architecture::intel_gpu_arl_h ||
|
|
|
- arch == syclex::architecture::intel_gpu_bmg_g21 ||
|
|
|
- arch == syclex::architecture::intel_gpu_lnl_m
|
|
|
- );
|
|
|
-
|
|
|
- return opt;
|
|
|
-}
|
|
|
-
|
|
|
namespace sycl_ex = sycl::ext::oneapi::experimental;
|
|
|
struct ggml_backend_sycl_context {
|
|
|
int device;
|