PR hygiene: licenses for the vendored code, a generic Intel GPU sampler, no generated files

- sycl/include/dpct/LICENSE.TXT: the SYCLomatic helper headers' license
  (Apache-2.0 WITH LLVM-exception; their SPDX notices already name it)
- sycl/third_party/ggml/LICENSE: ggml's MIT notice beside the migrated copy
- tools/intel/gpustat.py + gpustat.service: the root sampler the Monitor
  tab reads load and VRAM from on xe (finds the card, sizes VRAM from its
  BAR; GPUSTAT_PCI / GPUSTAT_VRAM_MB override)
- dpct reports and .yaml sidecars removed and ignored
- docs/INTEL.md: no references to a private test rig; the sampler and the
  model_switcher setting documented
This commit is contained in:
maxfridbe committed 2026-10-01 07:15:36 -05:00
1 parent e533380d98
commit 2837e43650
9 files changed
+464 -739

No files matched your search

+4
View File
@@ -56,3 +56,7 @@ build-vision.bat
/compile_commands.json
/sycl-migrate.log
/sycl/migrate.log
# SYCL port: dpct output that is not part of the port
sycl/dpct_report.*
sycl/**/*.yaml
+11 -3
View File
@@ -27,7 +27,8 @@ PCIe 3.0 x8 slot (the card trains at Gen3 x8 there; it can do Gen5 x16).
| context | up to 262K | 256K measured, 54 tok/s decode there (`--kv-resident`: the KV in pinned host memory, the attended window in VRAM) | 131K measured ceiling |
Decode speed with speculative decoding depends on the text: code drafts well, prose less so (see "Speed depends
on the text"). The SYCL numbers are greedy runs of the engine test rig on the 2026-10-01 build (commit 6b0d7a9);
on the text"). The SYCL numbers are greedy runs of the engine (as in "How to run it by hand" below, 256 new
tokens) on the 2026-10-01 build;
"Decode round 2" below lists what each change bought.
## Setup
@@ -193,7 +194,8 @@ under the same flags.
Without AOT the runtime JIT-compiles every kernel on first use, ~47 s the first time a process runs;
`SYCL_CACHE_PERSISTENT=1 SYCL_CACHE_DIR=<dir>` keeps that across runs (15 MB).
How to run it (all of this is what `coderiq1/sycl/run-engine-test.sh` does):
How to run it by hand (a greedy test run, the way every number in this section was measured; inside the
`strata-sycl-dev` image, AOT build in `build-sycl-aot/`):
```
STRATA_VERIFY_DEVICE_PLAN=1 STRATA_VERIFY_NO_HOST=1 \
@@ -352,6 +354,12 @@ with `--stream-experts` there is no host copy of the experts, so any expert left
and computed on the CPU whenever it is routed. At 1,536 MiB the cache came up 128 experts short and decode fell to
5-10 tok/s; 1,024 MiB fits all 12,288 with 2 GB of VRAM still free.
**The Monitor tab on Intel.** `serve/telemetry.py` reads the Arc through sysfs (temperature, power and its cap,
the PCIe link the card trained at) and, for load and VRAM, from `/run/gpustat.json`: xe reports those per client in
`/proc/*/fdinfo`, which only root can read, so a small root sampler writes them (`tools/intel/gpustat.py`, install
with its `gpustat.service` as its header says). A run config may also name a `model_switcher` (an RPC taking
`{"mode": m}`) for a host that swaps models on one card: the web app then shows a Model menu.
`setup.py` writes this config by itself on an Intel card once the SYCL engine is built (`build-sycl-aot/strata`
and the `strata-sycl-dev` image): a native pack, the MTP draft layer (from an existing `mtp-q2_0.gguf` without the
5 GB download), the container's paths, the reserve (1,024 MiB up to 32K, 2,048 with 4,096-token chunks above),
@@ -359,7 +367,7 @@ INT8 KV with `--kv-resident 32768` from 64K up (when the RAM holds the KV), and
config kept. `--intel-engine llama` keeps llama.cpp.
**Speed depends on the text.** Decode with speculative decoding tracks how often the draft layer guesses right.
The served engine at 32K context: 45-51 tok/s on the rig's test prompt (continuing a Fibonacci function, 77-85%
The served engine at 32K context: 45-51 tok/s on the test prompt (continuing a Fibonacci function, 77-85%
of drafts accepted), 30-39 tok/s on a chat answer with prose (55-72%); sampling and the repetition penalty cost
nothing measurable. The engine used to abort at exit in serve mode (a queue wait in a destructor after the
runtime's teardown began); it now exits directly once its requests are done.
-167
View File
@@ -1,167 +0,0 @@
API name, Frequency
"_Bool isnan(float __x)",1
"__half",18
"__half __float2half(const float a)",4
"__half __float2half_rn(const float a)",10
"__half __ushort_as_half(const unsigned short i)",22
"__half2",27
"__half2 __floats2half2_rn(const float a,const float b)",3
"__half2 __halves2half2(const __half a,const __half b)",3
"__half2 __hsub2(const __half2 a,const __half2 b)",1
"__half2 make_half2(const __half x,const __half y)",2
"char4",4
"const char * cudaGetErrorString(cudaError_t error)",142
"cublasHandle_t",6
"cublasStatus_t",1
"cublasStatus_t cublasCreate_v2(cublasHandle_t * handle)",2
"cublasStatus_t cublasDestroy_v2(cublasHandle_t handle)",1
"cublasStatus_t cublasGemmEx(cublasHandle_t handle,cublasOperation_t transa,cublasOperation_t transb,int m,int n,int k,const void * alpha,const void * A,cudaDataType Atype,int lda,const void * B,cudaDataType Btype,int ldb,const void * beta,void * C,cudaDataType Ctype,int ldc,cublasComputeType_t computeType,cublasGemmAlgo_t algo)",2
"cublasStatus_t cublasSetMathMode(cublasHandle_t handle,cublasMath_t mode)",2
"cublasStatus_t cublasSetStream_v2(cublasHandle_t handle,cudaStream_t streamId)",2
"cublasStatus_t cublasSetWorkspace_v2(cublasHandle_t handle,void * workspace,size_t workspaceSizeInBytes)",3
"cudaDeviceProp",2
"cudaError_t",113
"cudaError_t cudaDeviceGetAttribute(int * value,enum cudaDeviceAttr attr,int device)",6
"cudaError_t cudaDeviceSynchronize()",70
"cudaError_t cudaDriverGetVersion(int * driverVersion)",1
"cudaError_t cudaEventCreate(cudaEvent_t * event)",17
"cudaError_t cudaEventCreateWithFlags(cudaEvent_t * event,unsigned int flags)",9
"cudaError_t cudaEventDestroy(cudaEvent_t event)",21
"cudaError_t cudaEventElapsedTime(float * ms,cudaEvent_t start,cudaEvent_t end)",17
"cudaError_t cudaEventQuery(cudaEvent_t event)",6
"cudaError_t cudaEventRecord(cudaEvent_t event,cudaStream_t stream)",39
"cudaError_t cudaEventSynchronize(cudaEvent_t event)",10
"cudaError_t cudaFree(void * devPtr)",176
"cudaError_t cudaFreeHost(void * ptr)",32
"cudaError_t cudaFuncSetAttribute(void (*)(const float *, const float *, const int *, long, long, long, float *) func,enum cudaFuncAttribute attr,int value)",1
"cudaError_t cudaFuncSetAttribute(void (*)(const float *, const unsigned short *, const unsigned short *, const int *, int, int, int, float *, float *) func,enum cudaFuncAttribute attr,int value)",1
"cudaError_t cudaFuncSetAttribute(void (*)(const float *, struct strata::kernels::QsaAttnPools, const int *, const int *, int, int, float, float *, int) func,enum cudaFuncAttribute attr,int value)",2
"cudaError_t cudaFuncSetAttribute(void (*)(struct strata::kernels::(anonymous namespace)::GrMulti) func,enum cudaFuncAttribute attr,int value)",1
"cudaError_t cudaGetDevice(int * device)",19
"cudaError_t cudaGetDeviceCount(int * count)",5
"cudaError_t cudaGetDeviceProperties_v2(struct cudaDeviceProp * prop,int device)",2
"cudaError_t cudaGetLastError()",89
"cudaError_t cudaGraphDestroy(cudaGraph_t graph)",11
"cudaError_t cudaGraphExecDestroy(cudaGraphExec_t graphExec)",14
"cudaError_t cudaGraphGetNodes(cudaGraph_t graph,cudaGraphNode_t * nodes,size_t * numNodes)",1
"cudaError_t cudaGraphInstantiate(cudaGraphExec_t * pGraphExec,cudaGraph_t graph,cudaGraphNode_t * pErrorNode,char * pLogBuffer,size_t bufferSize)",5
"cudaError_t cudaGraphInstantiate(cudaGraphExec_t * pGraphExec,cudaGraph_t graph,unsigned long long flags)",5
"cudaError_t cudaGraphLaunch(cudaGraphExec_t graphExec,cudaStream_t stream)",21
"cudaError_t cudaHostAlloc(void ** pHost,size_t size,unsigned int flags)",15
"cudaError_t cudaHostGetDevicePointer(void ** pDevice,void * pHost,unsigned int flags)",9
"cudaError_t cudaHostRegister(void * ptr,size_t size,unsigned int flags)",2
"cudaError_t cudaHostUnregister(void * ptr)",2
"cudaError_t cudaMalloc(float ** devPtr,size_t size)",130
"cudaError_t cudaMalloc(int ** devPtr,size_t size)",17
"cudaError_t cudaMalloc(signed char ** devPtr,size_t size)",1
"cudaError_t cudaMalloc(unsigned char ** devPtr,size_t size)",22
"cudaError_t cudaMalloc(unsigned short ** devPtr,size_t size)",26
"cudaError_t cudaMalloc(void ** devPtr,size_t size)",42
"cudaError_t cudaMallocHost(void ** ptr,size_t size)",1
"cudaError_t cudaMemGetInfo(size_t * free,size_t * total)",11
"cudaError_t cudaMemcpy(void * dst,const void * src,size_t count,enum cudaMemcpyKind kind)",339
"cudaError_t cudaMemcpy2DAsync(void * dst,size_t dpitch,const void * src,size_t spitch,size_t width,size_t height,enum cudaMemcpyKind kind,cudaStream_t stream)",1
"cudaError_t cudaMemcpyAsync(void * dst,const void * src,size_t count,enum cudaMemcpyKind kind,cudaStream_t stream)",70
"cudaError_t cudaMemcpyToSymbol(const float &[256][4] symbol,const void * src,size_t count,size_t offset,enum cudaMemcpyKind kind)",1
"cudaError_t cudaMemset(void * devPtr,int value,size_t count)",13
"cudaError_t cudaMemsetAsync(void * devPtr,int value,size_t count,cudaStream_t stream)",22
"cudaError_t cudaPeekAtLastError()",3
"cudaError_t cudaRuntimeGetVersion(int * runtimeVersion)",1
"cudaError_t cudaSetDevice(int device)",11
"cudaError_t cudaStreamBeginCapture(cudaStream_t stream,enum cudaStreamCaptureMode mode)",10
"cudaError_t cudaStreamCreate(cudaStream_t * pStream)",11
"cudaError_t cudaStreamCreateWithFlags(cudaStream_t * pStream,unsigned int flags)",12
"cudaError_t cudaStreamDestroy(cudaStream_t stream)",17
"cudaError_t cudaStreamEndCapture(cudaStream_t stream,cudaGraph_t * pGraph)",10
"cudaError_t cudaStreamQuery(cudaStream_t stream)",2
"cudaError_t cudaStreamSynchronize(cudaStream_t stream)",57
"cudaError_t cudaStreamWaitEvent(cudaStream_t stream,cudaEvent_t event,unsigned int flags)",8
"cudaEvent_t",30
"cudaStream_t",306
"dim3",55
"double __dadd_rn(double __a,double __b)",6
"double __ddiv_rn(double __a,double __b)",2
"double __dmul_rn(double __a,double __b)",3
"double __dsqrt_rn(double __a)",2
"double __shfl_down_sync(unsigned int __mask,double __val,unsigned int __offset,int __width)",6
"double __shfl_sync(unsigned int __mask,double __val,int __offset,int __width)",2
"double __shfl_xor_sync(unsigned int __mask,double __val,int __offset,int __width)",1
"double exp(double __a)",10
"double fmax(double __a,double __b)",1
"double rint(double __a)",1
"double sqrt(double __a)",2
"float __expf(float __a)",33
"float __fadd_rn(float __a,float __b)",29
"float __fdiv_rn(float __a,float __b)",3
"float __fdividef(float __a,float __b)",3
"float __fmaf_rn(float __a,float __b,float __c)",18
"float __fmul_rn(float __a,float __b)",24
"float __fsub_rn(float __a,float __b)",1
"float __half2float(const __half a)",45
"float __high2float(const __half2 a)",6
"float __int_as_float(int __a)",21
"float __ldg(const float * ptr)",2
"float __low2float(const __half2 a)",29
"float __shfl_down_sync(unsigned int __mask,float __val,unsigned int __offset,int __width)",16
"float __shfl_sync(unsigned int __mask,float __val,int __offset,int __width)",2
"float __shfl_xor_sync(unsigned int __mask,float __val,int __offset,int __width)",51
"float __uint_as_float(unsigned int __a)",24
"float cosf(float __a)",4
"float exp2f(float __a)",4
"float expf(float __a)",26
"float fabsf(float __a)",13
"float fmaf(float __a,float __b,float __c)",63
"float fmaxf(float __a,float __b)",48
"float frexpf(float __a,int * __b)",2
"float ldexpf(float __a,int __b)",4
"float log1pf(float __a)",5
"float logf(float __a)",2
"float max(const float a,const float b)",2
"float powf(float __a,float __b)",4
"float roundf(float __a)",2
"float rsqrtf(float __a)",25
"float sinf(float __a)",4
"float sqrtf(float __a)",4
"float2",23
"float2 __half22float2(const __half2 a)",16
"float2 make_float2(float x,float y)",6
"float4",64
"float4 make_float4(float x,float y,float z,float w)",6
"half",15
"half2",8
"int __dp4a(int srcA,int srcB,int c)",54
"int __float2int_rn(float __a)",2
"int __float2int_rz(float __a)",1
"int __ldg(const int * ptr)",22
"int __popc(unsigned int __a)",5
"int __shfl_down_sync(unsigned int __mask,int __val,unsigned int __offset,int __width)",7
"int __shfl_up_sync(unsigned int __mask,int __val,unsigned int __offset,int __width)",4
"int __shfl_xor_sync(unsigned int __mask,int __val,int __offset,int __width)",2
"int atomicAdd(int * address,int val)",4
"int atomicCAS(int * address,int compare,int val)",1
"int max(int __a,int __b)",1
"int min(int __a,int __b)",7
"int2",12
"int2 make_int2(int x,int y)",7
"long long __shfl_sync(unsigned int __mask,long long __val,int __offset,int __width)",1
"size_t __cvta_generic_to_shared(const void * p)",1
"uint2",19
"uint2 make_uint2(unsigned int x,unsigned int y)",1
"uint4",50
"uint4 __ldg(const uint4 * ptr)",12
"uint4 make_uint4(unsigned int x,unsigned int y,unsigned int z,unsigned int w)",2
"unsigned int __ballot_sync(unsigned int mask,int pred)",2
"unsigned int __byte_perm(unsigned int __a,unsigned int __b,unsigned int __c)",22
"unsigned int __float_as_uint(float __a)",3
"unsigned int __umulhi(unsigned int __a,unsigned int __b)",2
"unsigned int __vcmpne4(unsigned int __a,unsigned int __b)",10
"unsigned int __vsub4(unsigned int __a,unsigned int __b)",10
"unsigned int __vsubss4(unsigned int __a,unsigned int __b)",2
"unsigned int atomicOr(unsigned int * address,unsigned int val)",2
"unsigned short __half_as_ushort(const __half h)",3
"unsigned short __ldg(const unsigned short * ptr)",2
"ushort4",3
"void __nanosleep(unsigned int ns)",3
"void __syncwarp(unsigned int mask)",10
"void __threadfence()",1
"void __threadfence_system()",6
1 API name Frequency
2 _Bool isnan(float __x) 1
3 __half 18
4 __half __float2half(const float a) 4
5 __half __float2half_rn(const float a) 10
6 __half __ushort_as_half(const unsigned short i) 22
7 __half2 27
8 __half2 __floats2half2_rn(const float a,const float b) 3
9 __half2 __halves2half2(const __half a,const __half b) 3
10 __half2 __hsub2(const __half2 a,const __half2 b) 1
11 __half2 make_half2(const __half x,const __half y) 2
12 char4 4
13 const char * cudaGetErrorString(cudaError_t error) 142
14 cublasHandle_t 6
15 cublasStatus_t 1
16 cublasStatus_t cublasCreate_v2(cublasHandle_t * handle) 2
17 cublasStatus_t cublasDestroy_v2(cublasHandle_t handle) 1
18 cublasStatus_t cublasGemmEx(cublasHandle_t handle,cublasOperation_t transa,cublasOperation_t transb,int m,int n,int k,const void * alpha,const void * A,cudaDataType Atype,int lda,const void * B,cudaDataType Btype,int ldb,const void * beta,void * C,cudaDataType Ctype,int ldc,cublasComputeType_t computeType,cublasGemmAlgo_t algo) 2
19 cublasStatus_t cublasSetMathMode(cublasHandle_t handle,cublasMath_t mode) 2
20 cublasStatus_t cublasSetStream_v2(cublasHandle_t handle,cudaStream_t streamId) 2
21 cublasStatus_t cublasSetWorkspace_v2(cublasHandle_t handle,void * workspace,size_t workspaceSizeInBytes) 3
22 cudaDeviceProp 2
23 cudaError_t 113
24 cudaError_t cudaDeviceGetAttribute(int * value,enum cudaDeviceAttr attr,int device) 6
25 cudaError_t cudaDeviceSynchronize() 70
26 cudaError_t cudaDriverGetVersion(int * driverVersion) 1
27 cudaError_t cudaEventCreate(cudaEvent_t * event) 17
28 cudaError_t cudaEventCreateWithFlags(cudaEvent_t * event,unsigned int flags) 9
29 cudaError_t cudaEventDestroy(cudaEvent_t event) 21
30 cudaError_t cudaEventElapsedTime(float * ms,cudaEvent_t start,cudaEvent_t end) 17
31 cudaError_t cudaEventQuery(cudaEvent_t event) 6
32 cudaError_t cudaEventRecord(cudaEvent_t event,cudaStream_t stream) 39
33 cudaError_t cudaEventSynchronize(cudaEvent_t event) 10
34 cudaError_t cudaFree(void * devPtr) 176
35 cudaError_t cudaFreeHost(void * ptr) 32
36 cudaError_t cudaFuncSetAttribute(void (*)(const float *, const float *, const int *, long, long, long, float *) func,enum cudaFuncAttribute attr,int value) 1
37 cudaError_t cudaFuncSetAttribute(void (*)(const float *, const unsigned short *, const unsigned short *, const int *, int, int, int, float *, float *) func,enum cudaFuncAttribute attr,int value) 1
38 cudaError_t cudaFuncSetAttribute(void (*)(const float *, struct strata::kernels::QsaAttnPools, const int *, const int *, int, int, float, float *, int) func,enum cudaFuncAttribute attr,int value) 2
39 cudaError_t cudaFuncSetAttribute(void (*)(struct strata::kernels::(anonymous namespace)::GrMulti) func,enum cudaFuncAttribute attr,int value) 1
40 cudaError_t cudaGetDevice(int * device) 19
41 cudaError_t cudaGetDeviceCount(int * count) 5
42 cudaError_t cudaGetDeviceProperties_v2(struct cudaDeviceProp * prop,int device) 2
43 cudaError_t cudaGetLastError() 89
44 cudaError_t cudaGraphDestroy(cudaGraph_t graph) 11
45 cudaError_t cudaGraphExecDestroy(cudaGraphExec_t graphExec) 14
46 cudaError_t cudaGraphGetNodes(cudaGraph_t graph,cudaGraphNode_t * nodes,size_t * numNodes) 1
47 cudaError_t cudaGraphInstantiate(cudaGraphExec_t * pGraphExec,cudaGraph_t graph,cudaGraphNode_t * pErrorNode,char * pLogBuffer,size_t bufferSize) 5
48 cudaError_t cudaGraphInstantiate(cudaGraphExec_t * pGraphExec,cudaGraph_t graph,unsigned long long flags) 5
49 cudaError_t cudaGraphLaunch(cudaGraphExec_t graphExec,cudaStream_t stream) 21
50 cudaError_t cudaHostAlloc(void ** pHost,size_t size,unsigned int flags) 15
51 cudaError_t cudaHostGetDevicePointer(void ** pDevice,void * pHost,unsigned int flags) 9
52 cudaError_t cudaHostRegister(void * ptr,size_t size,unsigned int flags) 2
53 cudaError_t cudaHostUnregister(void * ptr) 2
54 cudaError_t cudaMalloc(float ** devPtr,size_t size) 130
55 cudaError_t cudaMalloc(int ** devPtr,size_t size) 17
56 cudaError_t cudaMalloc(signed char ** devPtr,size_t size) 1
57 cudaError_t cudaMalloc(unsigned char ** devPtr,size_t size) 22
58 cudaError_t cudaMalloc(unsigned short ** devPtr,size_t size) 26
59 cudaError_t cudaMalloc(void ** devPtr,size_t size) 42
60 cudaError_t cudaMallocHost(void ** ptr,size_t size) 1
61 cudaError_t cudaMemGetInfo(size_t * free,size_t * total) 11
62 cudaError_t cudaMemcpy(void * dst,const void * src,size_t count,enum cudaMemcpyKind kind) 339
63 cudaError_t cudaMemcpy2DAsync(void * dst,size_t dpitch,const void * src,size_t spitch,size_t width,size_t height,enum cudaMemcpyKind kind,cudaStream_t stream) 1
64 cudaError_t cudaMemcpyAsync(void * dst,const void * src,size_t count,enum cudaMemcpyKind kind,cudaStream_t stream) 70
65 cudaError_t cudaMemcpyToSymbol(const float &[256][4] symbol,const void * src,size_t count,size_t offset,enum cudaMemcpyKind kind) 1
66 cudaError_t cudaMemset(void * devPtr,int value,size_t count) 13
67 cudaError_t cudaMemsetAsync(void * devPtr,int value,size_t count,cudaStream_t stream) 22
68 cudaError_t cudaPeekAtLastError() 3
69 cudaError_t cudaRuntimeGetVersion(int * runtimeVersion) 1
70 cudaError_t cudaSetDevice(int device) 11
71 cudaError_t cudaStreamBeginCapture(cudaStream_t stream,enum cudaStreamCaptureMode mode) 10
72 cudaError_t cudaStreamCreate(cudaStream_t * pStream) 11
73 cudaError_t cudaStreamCreateWithFlags(cudaStream_t * pStream,unsigned int flags) 12
74 cudaError_t cudaStreamDestroy(cudaStream_t stream) 17
75 cudaError_t cudaStreamEndCapture(cudaStream_t stream,cudaGraph_t * pGraph) 10
76 cudaError_t cudaStreamQuery(cudaStream_t stream) 2
77 cudaError_t cudaStreamSynchronize(cudaStream_t stream) 57
78 cudaError_t cudaStreamWaitEvent(cudaStream_t stream,cudaEvent_t event,unsigned int flags) 8
79 cudaEvent_t 30
80 cudaStream_t 306
81 dim3 55
82 double __dadd_rn(double __a,double __b) 6
83 double __ddiv_rn(double __a,double __b) 2
84 double __dmul_rn(double __a,double __b) 3
85 double __dsqrt_rn(double __a) 2
86 double __shfl_down_sync(unsigned int __mask,double __val,unsigned int __offset,int __width) 6
87 double __shfl_sync(unsigned int __mask,double __val,int __offset,int __width) 2
88 double __shfl_xor_sync(unsigned int __mask,double __val,int __offset,int __width) 1
89 double exp(double __a) 10
90 double fmax(double __a,double __b) 1
91 double rint(double __a) 1
92 double sqrt(double __a) 2
93 float __expf(float __a) 33
94 float __fadd_rn(float __a,float __b) 29
95 float __fdiv_rn(float __a,float __b) 3
96 float __fdividef(float __a,float __b) 3
97 float __fmaf_rn(float __a,float __b,float __c) 18
98 float __fmul_rn(float __a,float __b) 24
99 float __fsub_rn(float __a,float __b) 1
100 float __half2float(const __half a) 45
101 float __high2float(const __half2 a) 6
102 float __int_as_float(int __a) 21
103 float __ldg(const float * ptr) 2
104 float __low2float(const __half2 a) 29
105 float __shfl_down_sync(unsigned int __mask,float __val,unsigned int __offset,int __width) 16
106 float __shfl_sync(unsigned int __mask,float __val,int __offset,int __width) 2
107 float __shfl_xor_sync(unsigned int __mask,float __val,int __offset,int __width) 51
108 float __uint_as_float(unsigned int __a) 24
109 float cosf(float __a) 4
110 float exp2f(float __a) 4
111 float expf(float __a) 26
112 float fabsf(float __a) 13
113 float fmaf(float __a,float __b,float __c) 63
114 float fmaxf(float __a,float __b) 48
115 float frexpf(float __a,int * __b) 2
116 float ldexpf(float __a,int __b) 4
117 float log1pf(float __a) 5
118 float logf(float __a) 2
119 float max(const float a,const float b) 2
120 float powf(float __a,float __b) 4
121 float roundf(float __a) 2
122 float rsqrtf(float __a) 25
123 float sinf(float __a) 4
124 float sqrtf(float __a) 4
125 float2 23
126 float2 __half22float2(const __half2 a) 16
127 float2 make_float2(float x,float y) 6
128 float4 64
129 float4 make_float4(float x,float y,float z,float w) 6
130 half 15
131 half2 8
132 int __dp4a(int srcA,int srcB,int c) 54
133 int __float2int_rn(float __a) 2
134 int __float2int_rz(float __a) 1
135 int __ldg(const int * ptr) 22
136 int __popc(unsigned int __a) 5
137 int __shfl_down_sync(unsigned int __mask,int __val,unsigned int __offset,int __width) 7
138 int __shfl_up_sync(unsigned int __mask,int __val,unsigned int __offset,int __width) 4
139 int __shfl_xor_sync(unsigned int __mask,int __val,int __offset,int __width) 2
140 int atomicAdd(int * address,int val) 4
141 int atomicCAS(int * address,int compare,int val) 1
142 int max(int __a,int __b) 1
143 int min(int __a,int __b) 7
144 int2 12
145 int2 make_int2(int x,int y) 7
146 long long __shfl_sync(unsigned int __mask,long long __val,int __offset,int __width) 1
147 size_t __cvta_generic_to_shared(const void * p) 1
148 uint2 19
149 uint2 make_uint2(unsigned int x,unsigned int y) 1
150 uint4 50
151 uint4 __ldg(const uint4 * ptr) 12
152 uint4 make_uint4(unsigned int x,unsigned int y,unsigned int z,unsigned int w) 2
153 unsigned int __ballot_sync(unsigned int mask,int pred) 2
154 unsigned int __byte_perm(unsigned int __a,unsigned int __b,unsigned int __c) 22
155 unsigned int __float_as_uint(float __a) 3
156 unsigned int __umulhi(unsigned int __a,unsigned int __b) 2
157 unsigned int __vcmpne4(unsigned int __a,unsigned int __b) 10
158 unsigned int __vsub4(unsigned int __a,unsigned int __b) 10
159 unsigned int __vsubss4(unsigned int __a,unsigned int __b) 2
160 unsigned int atomicOr(unsigned int * address,unsigned int val) 2
161 unsigned short __half_as_ushort(const __half h) 3
162 unsigned short __ldg(const unsigned short * ptr) 2
163 ushort4 3
164 void __nanosleep(unsigned int ns) 3
165 void __syncwarp(unsigned int mask) 10
166 void __threadfence() 1
167 void __threadfence_system() 6
-101
View File
@@ -1,101 +0,0 @@
File name, LOC migrated to SYCL, LOC migrated to helper functions, LOC not needed to migrate, LOC not able to migrate
/work/Strata_B70/src/core/session.cpp, 68, 91, 781, 0
/work/Strata_B70/src/kernels/cuda/native_gdn_preprocess.cu, 43, 2, 155, 0
/work/Strata_B70/src/kernels/cuda/rope.cu, 14, 4, 78, 0
/work/Strata_B70/src/kernels/cuda/kv_q4.cu, 49, 12, 171, 0
/work/Strata_B70/src/kernels/kv_q8_parity.cpp, 2, 18, 122, 0
/work/Strata_B70/src/kernels/s_gemv_parity.cpp, 6, 44, 585, 0
/work/Strata_B70/src/kernels/cuda/native_qsa_score.cu, 33, 5, 134, 0
/work/Strata_B70/src/kernels/cuda/gdn.cu, 75, 15, 159, 0
/work/Strata_B70/src/kernels/shared_expert_parity.cpp, 12, 60, 411, 0
/work/Strata_B70/src/kernels/cuda/sampler.cu, 64, 15, 259, 0
/work/Strata_B70/src/kernels/cuda/qsa_select.cu, 105, 17, 399, 0
/work/Strata_B70/src/kernels/cuda/native_flash_attn.cu, 47, 5, 161, 0
/work/Strata_B70/src/kernels/router_top10_parity.cpp, 6, 11, 151, 0
/work/Strata_B70/src/kernels/bf16_gemv_parity.cpp, 6, 13, 130, 0
/work/Strata_B70/src/kernels/qsa_prompt_attn_parity.cpp, 11, 18, 181, 0
/work/Strata_B70/src/kernels/sampler_parity.cpp, 6, 26, 822, 0
/work/Strata_B70/src/kernels/cuda/router_top10.cu, 35, 11, 181, 0
/work/Strata_B70/src/kernels/cuda/native_qsa_indexer.cu, 63, 5, 176, 0
/work/Strata_B70/src/kernels/cuda/qsa_decode_attn.cu, 94, 11, 170, 0
/work/Strata_B70/src/kernels/cuda/fused_gr.cu, 97, 9, 262, 0
/work/Strata_B70/src/kernels/cuda/quantize_act.cu, 53, 15, 246, 0
/work/Strata_B70/src/kernels/cuda/native_gr_postops.cu, 27, 2, 87, 0
/work/Strata_B70/src/core/expert_source.cpp, 6, 4, 783, 0
/work/Strata_B70/src/kernels/kv_stream_parity.cpp, 3, 21, 211, 0
/work/Strata_B70/src/kernels/cuda/gr.cu, 94, 12, 327, 0
/work/Strata_B70/src/kernels/cuda/native_ple_postops.cu, 60, 4, 158, 0
/work/Strata_B70/src/kernels/native_expert_parity.cpp, 1, 2, 259, 0
/work/Strata_B70/src/prefill/ggml_cuda_host.cu, 7, 5, 71, 0
/work/Strata_B70/src/kernels/cuda/s2_gemv_fast.cu, 45, 6, 103, 0
/work/Strata_B70/src/kernels/cuda/native_qsa.cu, 19, 2, 107, 0
/work/Strata_B70/src/kernels/qsa_parity.cpp, 20, 37, 1327, 0
/work/Strata_B70/src/kernels/cuda/dequant_bf16.cu, 19, 2, 225, 0
/work/Strata_B70/src/kernels/cuda/kv_stream.cu, 46, 12, 201, 0
/work/Strata_B70/src/prefill/moe_mmq.cu, 38, 6, 143, 0
/work/Strata_B70/src/kernels/cvec_parity.cpp, 6, 12, 206, 0
/work/Strata_B70/src/core/expert_cache.cpp, 8, 16, 300, 0
/work/Strata_B70/src/kernels/cuda/verify_kernels.cu, 177, 19, 359, 0
/work/Strata_B70/include/strata/kernels/mrope.hpp, 3, 0, 31, 0
/work/Strata_B70/src/kernels/cuda/iq_kernels.cu, 167, 40, 541, 0
/work/Strata_B70/src/kernels/cuda/fused_gdn.cu, 65, 9, 93, 0
/work/Strata_B70/src/kernels/cuda/native_mmvq.cu, 242, 59, 1192, 0
/work/Strata_B70/include/strata/core/verify.hpp, 1, 5, 232, 0
/work/Strata_B70/src/kernels/elementwise_parity.cpp, 19, 42, 356, 0
/work/Strata_B70/src/kernels/cuda/qsa.cu, 138, 21, 653, 0
/work/Strata_B70/src/kernels/dequant_bf16_test.cpp, 1, 9, 99, 0
/work/Strata_B70/src/kernels/cuda/native_rope.cu, 10, 4, 84, 0
/work/Strata_B70/src/core/device.cu, 11, 13, 95, 0
/work/Strata_B70/src/kernels/quantize_act_parity.cpp, 6, 21, 381, 0
/work/Strata_B70/src/kernels/cuda/s_gemv.cu, 127, 18, 542, 0
/work/Strata_B70/src/kernels/cuda/bf16_gemv.cu, 31, 6, 105, 0
/work/Strata_B70/include/strata/core/session.hpp, 1, 7, 404, 0
/work/Strata_B70/src/kernels/cuda/shared_expert.cu, 60, 10, 277, 0
/work/Strata_B70/src/core/layer.cpp, 29, 27, 1215, 0
/work/Strata_B70/src/kernels/dequant_s2_parity.cpp, 6, 11, 127, 0
/work/Strata_B70/src/core/pinned.cu, 13, 8, 346, 0
/work/Strata_B70/src/core/concurrent_main.cpp, 13, 22, 163, 0
/work/Strata_B70/src/kernels/s_gemv_q8k_parity.cpp, 6, 24, 207, 0
/work/Strata_B70/src/core/weights.cpp, 2, 15, 440, 0
/work/Strata_B70/src/kernels/cuda/elementwise.cu, 87, 9, 225, 0
/work/Strata_B70/src/kernels/kv_q4_parity.cpp, 6, 32, 309, 0
/work/Strata_B70/src/kernels/ple_parity.cpp, 26, 108, 1051, 0
/work/Strata_B70/src/kernels/qsa_select_bench.cpp, 5, 17, 118, 0
/work/Strata_B70/src/core/native_dense.cpp, 4, 7, 172, 0
/work/Strata_B70/src/kernels/cuda/s2_gemv_quads.cu, 25, 2, 67, 0
/work/Strata_B70/include/strata/kernels/bf16_bits.hpp, 2, 0, 45, 0
/work/Strata_B70/src/kernels/gdn_parity.cpp, 6, 45, 347, 0
/work/Strata_B70/src/kernels/cuda/native_bf16.cu, 32, 7, 148, 0
/work/Strata_B70/src/kernels/cuda/s2_gemv.cu, 13, 2, 49, 0
/work/Strata_B70/src/kernels/cuda/kv_q8.cu, 43, 6, 79, 0
/work/Strata_B70/include/strata/kernels/rope.hpp, 2, 0, 49, 0
/work/Strata_B70/third_party/ggml/ggml-common.h, 4, 865, 1043, 0
/work/Strata_B70/include/strata/core/on_device.hpp, 1, 2, 20, 0
/work/Strata_B70/src/core/overlap_main.cpp, 16, 28, 126, 0
/work/Strata_B70/include/strata/core/mtp.hpp, 1, 6, 142, 0
/work/Strata_B70/src/kernels/cuda/native_gr_norm.cu, 15, 3, 85, 0
/work/Strata_B70/src/kernels/gr_parity.cpp, 16, 80, 520, 0
/work/Strata_B70/src/kernels/cuda/native_router.cu, 19, 4, 105, 0
/work/Strata_B70/src/kernels/s2_gemv_parity.cpp, 6, 14, 154, 0
/work/Strata_B70/src/kernels/rope_parity.cpp, 6, 15, 151, 0
/work/Strata_B70/src/prefill/prefill.cpp, 60, 52, 1542, 0
/work/Strata_B70/src/kernels/iq_parity.cpp, 2, 12, 74, 0
/work/Strata_B70/src/kernels/cuda/qsa_prompt_attn.cu, 159, 26, 485, 0
/work/Strata_B70/src/kernels/cuda/ple.cu, 73, 6, 288, 0
/work/Strata_B70/src/kernels/s2_gemv_q8_parity.cpp, 6, 16, 160, 0
/work/Strata_B70/src/kernels/cuda/cvec.cu, 25, 22, 120, 0
/work/Strata_B70/src/kernels/cuda/dequant_s2.cu, 10, 2, 40, 0
/work/Strata_B70/src/kernels/cuda/native_gdn.cu, 15, 2, 106, 0
/work/Strata_B70/include/strata/kernels/f16_bits.hpp, 2, 0, 95, 0
/work/Strata_B70/include/strata/core/remote_experts.hpp, 1, 1, 84, 0
/work/Strata_B70/src/kernels/cuda/s2_expert_grouped.cu, 184, 21, 581, 0
/work/Strata_B70/src/prefill/gemm.cu, 7, 25, 83, 0
/work/Strata_B70/src/kernels/cuda/native_moe.cu, 16, 2, 69, 0
/work/Strata_B70/src/program/generate.cpp, 48, 134, 4874, 0
/work/Strata_B70/src/core/native_head.cpp, 6, 12, 134, 0
/work/Strata_B70/src/prefill/kernels.cu, 211, 10, 401, 0
/work/Strata_B70/src/kernels/cuda/s2_gemv_q8.cu, 20, 4, 73, 0
Total migration time: 179566.969000 ms
1 File name LOC migrated to SYCL LOC migrated to helper functions LOC not needed to migrate LOC not able to migrate
2 /work/Strata_B70/src/core/session.cpp 68 91 781 0
3 /work/Strata_B70/src/kernels/cuda/native_gdn_preprocess.cu 43 2 155 0
4 /work/Strata_B70/src/kernels/cuda/rope.cu 14 4 78 0
5 /work/Strata_B70/src/kernels/cuda/kv_q4.cu 49 12 171 0
6 /work/Strata_B70/src/kernels/kv_q8_parity.cpp 2 18 122 0
7 /work/Strata_B70/src/kernels/s_gemv_parity.cpp 6 44 585 0
8 /work/Strata_B70/src/kernels/cuda/native_qsa_score.cu 33 5 134 0
9 /work/Strata_B70/src/kernels/cuda/gdn.cu 75 15 159 0
10 /work/Strata_B70/src/kernels/shared_expert_parity.cpp 12 60 411 0
11 /work/Strata_B70/src/kernels/cuda/sampler.cu 64 15 259 0
12 /work/Strata_B70/src/kernels/cuda/qsa_select.cu 105 17 399 0
13 /work/Strata_B70/src/kernels/cuda/native_flash_attn.cu 47 5 161 0
14 /work/Strata_B70/src/kernels/router_top10_parity.cpp 6 11 151 0
15 /work/Strata_B70/src/kernels/bf16_gemv_parity.cpp 6 13 130 0
16 /work/Strata_B70/src/kernels/qsa_prompt_attn_parity.cpp 11 18 181 0
17 /work/Strata_B70/src/kernels/sampler_parity.cpp 6 26 822 0
18 /work/Strata_B70/src/kernels/cuda/router_top10.cu 35 11 181 0
19 /work/Strata_B70/src/kernels/cuda/native_qsa_indexer.cu 63 5 176 0
20 /work/Strata_B70/src/kernels/cuda/qsa_decode_attn.cu 94 11 170 0
21 /work/Strata_B70/src/kernels/cuda/fused_gr.cu 97 9 262 0
22 /work/Strata_B70/src/kernels/cuda/quantize_act.cu 53 15 246 0
23 /work/Strata_B70/src/kernels/cuda/native_gr_postops.cu 27 2 87 0
24 /work/Strata_B70/src/core/expert_source.cpp 6 4 783 0
25 /work/Strata_B70/src/kernels/kv_stream_parity.cpp 3 21 211 0
26 /work/Strata_B70/src/kernels/cuda/gr.cu 94 12 327 0
27 /work/Strata_B70/src/kernels/cuda/native_ple_postops.cu 60 4 158 0
28 /work/Strata_B70/src/kernels/native_expert_parity.cpp 1 2 259 0
29 /work/Strata_B70/src/prefill/ggml_cuda_host.cu 7 5 71 0
30 /work/Strata_B70/src/kernels/cuda/s2_gemv_fast.cu 45 6 103 0
31 /work/Strata_B70/src/kernels/cuda/native_qsa.cu 19 2 107 0
32 /work/Strata_B70/src/kernels/qsa_parity.cpp 20 37 1327 0
33 /work/Strata_B70/src/kernels/cuda/dequant_bf16.cu 19 2 225 0
34 /work/Strata_B70/src/kernels/cuda/kv_stream.cu 46 12 201 0
35 /work/Strata_B70/src/prefill/moe_mmq.cu 38 6 143 0
36 /work/Strata_B70/src/kernels/cvec_parity.cpp 6 12 206 0
37 /work/Strata_B70/src/core/expert_cache.cpp 8 16 300 0
38 /work/Strata_B70/src/kernels/cuda/verify_kernels.cu 177 19 359 0
39 /work/Strata_B70/include/strata/kernels/mrope.hpp 3 0 31 0
40 /work/Strata_B70/src/kernels/cuda/iq_kernels.cu 167 40 541 0
41 /work/Strata_B70/src/kernels/cuda/fused_gdn.cu 65 9 93 0
42 /work/Strata_B70/src/kernels/cuda/native_mmvq.cu 242 59 1192 0
43 /work/Strata_B70/include/strata/core/verify.hpp 1 5 232 0
44 /work/Strata_B70/src/kernels/elementwise_parity.cpp 19 42 356 0
45 /work/Strata_B70/src/kernels/cuda/qsa.cu 138 21 653 0
46 /work/Strata_B70/src/kernels/dequant_bf16_test.cpp 1 9 99 0
47 /work/Strata_B70/src/kernels/cuda/native_rope.cu 10 4 84 0
48 /work/Strata_B70/src/core/device.cu 11 13 95 0
49 /work/Strata_B70/src/kernels/quantize_act_parity.cpp 6 21 381 0
50 /work/Strata_B70/src/kernels/cuda/s_gemv.cu 127 18 542 0
51 /work/Strata_B70/src/kernels/cuda/bf16_gemv.cu 31 6 105 0
52 /work/Strata_B70/include/strata/core/session.hpp 1 7 404 0
53 /work/Strata_B70/src/kernels/cuda/shared_expert.cu 60 10 277 0
54 /work/Strata_B70/src/core/layer.cpp 29 27 1215 0
55 /work/Strata_B70/src/kernels/dequant_s2_parity.cpp 6 11 127 0
56 /work/Strata_B70/src/core/pinned.cu 13 8 346 0
57 /work/Strata_B70/src/core/concurrent_main.cpp 13 22 163 0
58 /work/Strata_B70/src/kernels/s_gemv_q8k_parity.cpp 6 24 207 0
59 /work/Strata_B70/src/core/weights.cpp 2 15 440 0
60 /work/Strata_B70/src/kernels/cuda/elementwise.cu 87 9 225 0
61 /work/Strata_B70/src/kernels/kv_q4_parity.cpp 6 32 309 0
62 /work/Strata_B70/src/kernels/ple_parity.cpp 26 108 1051 0
63 /work/Strata_B70/src/kernels/qsa_select_bench.cpp 5 17 118 0
64 /work/Strata_B70/src/core/native_dense.cpp 4 7 172 0
65 /work/Strata_B70/src/kernels/cuda/s2_gemv_quads.cu 25 2 67 0
66 /work/Strata_B70/include/strata/kernels/bf16_bits.hpp 2 0 45 0
67 /work/Strata_B70/src/kernels/gdn_parity.cpp 6 45 347 0
68 /work/Strata_B70/src/kernels/cuda/native_bf16.cu 32 7 148 0
69 /work/Strata_B70/src/kernels/cuda/s2_gemv.cu 13 2 49 0
70 /work/Strata_B70/src/kernels/cuda/kv_q8.cu 43 6 79 0
71 /work/Strata_B70/include/strata/kernels/rope.hpp 2 0 49 0
72 /work/Strata_B70/third_party/ggml/ggml-common.h 4 865 1043 0
73 /work/Strata_B70/include/strata/core/on_device.hpp 1 2 20 0
74 /work/Strata_B70/src/core/overlap_main.cpp 16 28 126 0
75 /work/Strata_B70/include/strata/core/mtp.hpp 1 6 142 0
76 /work/Strata_B70/src/kernels/cuda/native_gr_norm.cu 15 3 85 0
77 /work/Strata_B70/src/kernels/gr_parity.cpp 16 80 520 0
78 /work/Strata_B70/src/kernels/cuda/native_router.cu 19 4 105 0
79 /work/Strata_B70/src/kernels/s2_gemv_parity.cpp 6 14 154 0
80 /work/Strata_B70/src/kernels/rope_parity.cpp 6 15 151 0
81 /work/Strata_B70/src/prefill/prefill.cpp 60 52 1542 0
82 /work/Strata_B70/src/kernels/iq_parity.cpp 2 12 74 0
83 /work/Strata_B70/src/kernels/cuda/qsa_prompt_attn.cu 159 26 485 0
84 /work/Strata_B70/src/kernels/cuda/ple.cu 73 6 288 0
85 /work/Strata_B70/src/kernels/s2_gemv_q8_parity.cpp 6 16 160 0
86 /work/Strata_B70/src/kernels/cuda/cvec.cu 25 22 120 0
87 /work/Strata_B70/src/kernels/cuda/dequant_s2.cu 10 2 40 0
88 /work/Strata_B70/src/kernels/cuda/native_gdn.cu 15 2 106 0
89 /work/Strata_B70/include/strata/kernels/f16_bits.hpp 2 0 95 0
90 /work/Strata_B70/include/strata/core/remote_experts.hpp 1 1 84 0
91 /work/Strata_B70/src/kernels/cuda/s2_expert_grouped.cu 184 21 581 0
92 /work/Strata_B70/src/prefill/gemm.cu 7 25 83 0
93 /work/Strata_B70/src/kernels/cuda/native_moe.cu 16 2 69 0
94 /work/Strata_B70/src/program/generate.cpp 48 134 4874 0
95 /work/Strata_B70/src/core/native_head.cpp 6 12 134 0
96 /work/Strata_B70/src/prefill/kernels.cu 211 10 401 0
97 /work/Strata_B70/src/kernels/cuda/s2_gemv_q8.cu 20 4 73 0
98 Total migration time: 179566.969000 ms
+236
View File
@@ -0,0 +1,236 @@
==============================================================================
The SYCLomatic (dpct) helper headers in this directory, vendored from Intel oneAPI DPC++ Compatibility Tool
2025.3 (https://github.com/oneapi-src/SYCLomatic), are under the Apache License v2.0 with LLVM Exceptions
(SPDX: Apache-2.0 WITH LLVM-exception; Copyright (C) Intel Corporation):
==============================================================================
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
---- LLVM Exceptions to the Apache 2.0 License ----
As an exception, if, as a result of your compiling your source code, portions
of this Software are embedded into an Object form of such source code, you
may redistribute such embedded portions in such Object form without complying
with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
In addition, if you combine or link compiled forms of this Software with
software that is licensed under the GPLv2 ("Combined Software") and if a
court of competent jurisdiction determines that the patent provision (Section
3), the indemnity provision (Section 9) or other Section of the License
conflicts with the conditions of the GPLv2, you may retroactively and
prospectively choose to deem waived or otherwise exclude such Section(s) of
the License, but only in their entirety and only with respect to the Combined
Software.
==============================================================================
Software from third parties included in the Unified Memory Framework:
==============================================================================
The Unified Memory Framework contains third party software which is under different license
terms. All such code will be identified clearly using at least one of two
mechanisms:
1) It will be in a separate directory tree with its own `LICENSE.txt` or
`LICENSE` file at the top containing the specific license and restrictions
which apply to that software, or
2) It will contain specific license and restriction terms at the top of every
file.
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023-2026 The ggml authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-468
View File
@@ -1,468 +0,0 @@
---
MainSourceFile: '/work/Strata_B70/sycl/third_party/ggml/ggml-common.h'
Replacements:
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 808
Length: 23
ReplacementText: "#define DPCT_PROFILING_ENABLED\n#include <sycl/sycl.hpp>\n#include <dpct/dpct.hpp>\n"
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 866
Length: 4
ReplacementText: 'sycl::half'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 891
Length: 5
ReplacementText: 'sycl::half2'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 3603
Length: 0
ReplacementText: ' dpct_type_176557'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 3833
Length: 0
ReplacementText: ' dpct_type_169569'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 4081
Length: 0
ReplacementText: ' dpct_type_270674'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 4314
Length: 0
ReplacementText: ' dpct_type_161308'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 4707
Length: 0
ReplacementText: ' dpct_type_632229'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 4977
Length: 0
ReplacementText: ' dpct_type_129888'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 5324
Length: 0
ReplacementText: ' dpct_type_150588'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 5625
Length: 0
ReplacementText: ' dpct_type_101666'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 6083
Length: 0
ReplacementText: ' dpct_type_629246'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 6294
Length: 0
ReplacementText: ' dpct_type_105592'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 6702
Length: 0
ReplacementText: ' dpct_type_176150'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 7031
Length: 0
ReplacementText: ' dpct_type_684670'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 7409
Length: 0
ReplacementText: ' dpct_type_101745'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 8053
Length: 0
ReplacementText: ' dpct_type_118557'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 8538
Length: 0
ReplacementText: ' dpct_type_897602'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 9204
Length: 0
ReplacementText: ' dpct_type_156099'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 9938
Length: 0
ReplacementText: ' dpct_type_161410'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 10368
Length: 0
ReplacementText: ' dpct_type_137016'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 10828
Length: 0
ReplacementText: ' dpct_type_101609'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 11047
Length: 0
ReplacementText: ' dpct_type_549418'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 11303
Length: 0
ReplacementText: ' dpct_type_129269'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 11715
Length: 0
ReplacementText: ' dpct_type_889699'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 11944
Length: 0
ReplacementText: ' dpct_type_497741'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 12239
Length: 0
ReplacementText: ' dpct_type_174130'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 12462
Length: 0
ReplacementText: ' dpct_type_758813'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 12844
Length: 0
ReplacementText: ' dpct_type_145009'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 12955
Length: 0
ReplacementText: ' dpct_type_105897'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 13136
Length: 0
ReplacementText: ' dpct_type_754545'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 14298
Length: 11
ReplacementText: ''
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 14610
Length: 90
ReplacementText: 'static dpct::global_memory<const uint8_t, 1> kmask_iq2xs(sycl::range(8), {1, 2, 4, 8, 16, 32, 64, 128});'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 14702
Length: 733
ReplacementText: 'static dpct::global_memory<const uint8_t, 1> ksigns_iq2xs(sycl::range(128), {0, 129, 130, 3, 132, 5, 6, 135, 136, 9, 10, 139, 12, 141, 142, 15, 144, 17, 18, 147, 20, 149, 150, 23, 24, 153, 154, 27, 156, 29, 30, 159, 160, 33, 34, 163, 36, 165, 166, 39, 40, 169, 170, 43, 172, 45, 46, 175, 48, 177, 178, 51, 180, 53, 54, 183, 184, 57, 58, 187, 60, 189, 190, 63, 192, 65, 66, 195, 68, 197, 198, 71, 72, 201, 202, 75, 204, 77, 78, 207, 80, 209, 210, 83, 212, 85, 86, 215, 216, 89, 90, 219, 92, 221, 222, 95, 96, 225, 226, 99, 228, 101, 102, 231, 232, 105, 106, 235, 108, 237, 238, 111, 240, 113, 114, 243, 116, 245, 246, 119, 120, 249, 250, 123, 252, 125, 126, 255});'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 15437
Length: 2746
ReplacementText: 'static dpct::global_memory<const uint64_t, 1> ksigns64(sycl::range(128), {0x0000000000000000, 0xff000000000000ff, 0xff0000000000ff00, 0x000000000000ffff, 0xff00000000ff0000, 0x0000000000ff00ff, 0x0000000000ffff00, 0xff00000000ffffff, 0xff000000ff000000, 0x00000000ff0000ff, 0x00000000ff00ff00, 0xff000000ff00ffff, 0x00000000ffff0000, 0xff000000ffff00ff, 0xff000000ffffff00, 0x00000000ffffffff, 0xff0000ff00000000, 0x000000ff000000ff, 0x000000ff0000ff00, 0xff0000ff0000ffff, 0x000000ff00ff0000, 0xff0000ff00ff00ff, 0xff0000ff00ffff00, 0x000000ff00ffffff, 0x000000ffff000000, 0xff0000ffff0000ff, 0xff0000ffff00ff00, 0x000000ffff00ffff, 0xff0000ffffff0000, 0x000000ffffff00ff, 0x000000ffffffff00, 0xff0000ffffffffff, 0xff00ff0000000000, 0x0000ff00000000ff, 0x0000ff000000ff00, 0xff00ff000000ffff, 0x0000ff0000ff0000, 0xff00ff0000ff00ff, 0xff00ff0000ffff00, 0x0000ff0000ffffff, 0x0000ff00ff000000, 0xff00ff00ff0000ff, 0xff00ff00ff00ff00, 0x0000ff00ff00ffff, 0xff00ff00ffff0000, 0x0000ff00ffff00ff, 0x0000ff00ffffff00, 0xff00ff00ffffffff, 0x0000ffff00000000, 0xff00ffff000000ff, 0xff00ffff0000ff00, 0x0000ffff0000ffff, 0xff00ffff00ff0000, 0x0000ffff00ff00ff, 0x0000ffff00ffff00, 0xff00ffff00ffffff, 0xff00ffffff000000, 0x0000ffffff0000ff, 0x0000ffffff00ff00, 0xff00ffffff00ffff, 0x0000ffffffff0000, 0xff00ffffffff00ff, 0xff00ffffffffff00, 0x0000ffffffffffff, 0xffff000000000000, 0x00ff0000000000ff, 0x00ff00000000ff00, 0xffff00000000ffff, 0x00ff000000ff0000, 0xffff000000ff00ff, 0xffff000000ffff00, 0x00ff000000ffffff, 0x00ff0000ff000000, 0xffff0000ff0000ff, 0xffff0000ff00ff00, 0x00ff0000ff00ffff, 0xffff0000ffff0000, 0x00ff0000ffff00ff, 0x00ff0000ffffff00, 0xffff0000ffffffff, 0x00ff00ff00000000, 0xffff00ff000000ff, 0xffff00ff0000ff00, 0x00ff00ff0000ffff, 0xffff00ff00ff0000, 0x00ff00ff00ff00ff, 0x00ff00ff00ffff00, 0xffff00ff00ffffff, 0xffff00ffff000000, 0x00ff00ffff0000ff, 0x00ff00ffff00ff00, 0xffff00ffff00ffff, 0x00ff00ffffff0000, 0xffff00ffffff00ff, 0xffff00ffffffff00, 0x00ff00ffffffffff, 0x00ffff0000000000, 0xffffff00000000ff, 0xffffff000000ff00, 0x00ffff000000ffff, 0xffffff0000ff0000, 0x00ffff0000ff00ff, 0x00ffff0000ffff00, 0xffffff0000ffffff, 0xffffff00ff000000, 0x00ffff00ff0000ff, 0x00ffff00ff00ff00, 0xffffff00ff00ffff, 0x00ffff00ffff0000, 0xffffff00ffff00ff, 0xffffff00ffffff00, 0x00ffff00ffffffff, 0xffffffff00000000, 0x00ffffff000000ff, 0x00ffffff0000ff00, 0xffffffff0000ffff, 0x00ffffff00ff0000, 0xffffffff00ff00ff, 0xffffffff00ffff00, 0x00ffffff00ffffff, 0x00ffffffff000000, 0xffffffffff0000ff, 0xffffffffff00ff00, 0x00ffffffff00ffff, 0xffffffffffff0000, 0x00ffffffffff00ff, 0x00ffffffffffff00, 0xffffffffffffffff});'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 18186
Length: 5437
ReplacementText: 'static dpct::global_memory<const uint64_t, 1> iq2xxs_grid(sycl::range(256), {0x0808080808080808, 0x080808080808082b, 0x0808080808081919, 0x0808080808082b08, 0x0808080808082b2b, 0x0808080808190819, 0x0808080808191908, 0x08080808082b0808, 0x08080808082b082b, 0x08080808082b2b08, 0x08080808082b2b2b, 0x0808080819080819, 0x0808080819081908, 0x0808080819190808, 0x0808080819192b08, 0x08080808192b0819, 0x08080808192b1908, 0x080808082b080808, 0x080808082b08082b, 0x080808082b082b2b, 0x080808082b2b082b, 0x0808081908080819, 0x0808081908081908, 0x0808081908190808, 0x0808081908191919, 0x0808081919080808, 0x080808192b081908, 0x080808192b192b08, 0x0808082b08080808, 0x0808082b0808082b, 0x0808082b082b082b, 0x0808082b2b08082b, 0x0808190808080819, 0x0808190808081908, 0x0808190808190808, 0x08081908082b0819, 0x08081908082b1908, 0x0808190819080808, 0x080819081908082b, 0x0808190819082b08, 0x08081908192b0808, 0x080819082b080819, 0x080819082b081908, 0x080819082b190808, 0x080819082b2b1908, 0x0808191908080808, 0x080819190808082b, 0x0808191908082b08, 0x08081919082b0808, 0x080819191908192b, 0x08081919192b2b19, 0x080819192b080808, 0x080819192b190819, 0x0808192b08082b19, 0x0808192b08190808, 0x0808192b19080808, 0x0808192b2b081908, 0x0808192b2b2b1908, 0x08082b0808080808, 0x08082b0808081919, 0x08082b0808082b08, 0x08082b0808191908, 0x08082b08082b2b08, 0x08082b0819080819, 0x08082b0819081908, 0x08082b0819190808, 0x08082b081919082b, 0x08082b082b082b08, 0x08082b1908081908, 0x08082b1919080808, 0x08082b2b0808082b, 0x08082b2b08191908, 0x0819080808080819, 0x0819080808081908, 0x0819080808190808, 0x08190808082b0819, 0x0819080819080808, 0x08190808192b0808, 0x081908082b081908, 0x081908082b190808, 0x081908082b191919, 0x0819081908080808, 0x0819081908082b08, 0x08190819082b0808, 0x0819081919190808, 0x0819081919192b2b, 0x081908192b080808, 0x0819082b082b1908, 0x0819082b19081919, 0x0819190808080808, 0x0819190808082b08, 0x08191908082b0808, 0x08191908082b1919, 0x0819190819082b19, 0x081919082b080808, 0x0819191908192b08, 0x08191919192b082b, 0x0819192b08080808, 0x0819192b0819192b, 0x08192b0808080819, 0x08192b0808081908, 0x08192b0808190808, 0x08192b0819080808, 0x08192b082b080819, 0x08192b1908080808, 0x08192b1908081919, 0x08192b192b2b0808, 0x08192b2b19190819, 0x082b080808080808, 0x082b08080808082b, 0x082b080808082b2b, 0x082b080819081908, 0x082b0808192b0819, 0x082b08082b080808, 0x082b08082b08082b, 0x082b0819082b2b19, 0x082b081919082b08, 0x082b082b08080808, 0x082b082b0808082b, 0x082b190808080819, 0x082b190808081908, 0x082b190808190808, 0x082b190819080808, 0x082b19081919192b, 0x082b191908080808, 0x082b191919080819, 0x082b1919192b1908, 0x082b192b2b190808, 0x082b2b0808082b08, 0x082b2b08082b0808, 0x082b2b082b191908, 0x082b2b2b19081908, 0x1908080808080819, 0x1908080808081908, 0x1908080808190808, 0x1908080808192b08, 0x19080808082b0819, 0x19080808082b1908, 0x1908080819080808, 0x1908080819082b08, 0x190808081919192b, 0x19080808192b0808, 0x190808082b080819, 0x190808082b081908, 0x190808082b190808, 0x1908081908080808, 0x19080819082b0808, 0x19080819192b0819, 0x190808192b080808, 0x190808192b081919, 0x1908082b08080819, 0x1908082b08190808, 0x1908082b19082b08, 0x1908082b1919192b, 0x1908082b192b2b08, 0x1908190808080808, 0x1908190808082b08, 0x19081908082b0808, 0x190819082b080808, 0x190819082b192b19, 0x190819190819082b, 0x19081919082b1908, 0x1908192b08080808, 0x19082b0808080819, 0x19082b0808081908, 0x19082b0808190808, 0x19082b0819080808, 0x19082b0819081919, 0x19082b1908080808, 0x19082b1919192b08, 0x19082b19192b0819, 0x19082b192b08082b, 0x19082b2b19081919, 0x19082b2b2b190808, 0x1919080808080808, 0x1919080808082b08, 0x1919080808190819, 0x1919080808192b19, 0x19190808082b0808, 0x191908082b080808, 0x191908082b082b08, 0x1919081908081908, 0x191908191908082b, 0x191908192b2b1908, 0x1919082b2b190819, 0x191919082b190808, 0x191919082b19082b, 0x1919191908082b2b, 0x1919192b08080819, 0x1919192b19191908, 0x19192b0808080808, 0x19192b0808190819, 0x19192b0808192b19, 0x19192b08192b1908, 0x19192b1919080808, 0x19192b2b08082b08, 0x192b080808081908, 0x192b080808190808, 0x192b080819080808, 0x192b0808192b2b08, 0x192b081908080808, 0x192b081919191919, 0x192b082b08192b08, 0x192b082b192b0808, 0x192b190808080808, 0x192b190808081919, 0x192b191908190808, 0x192b19190819082b, 0x192b19192b081908, 0x192b2b081908082b, 0x2b08080808080808, 0x2b0808080808082b, 0x2b08080808082b2b, 0x2b08080819080819, 0x2b0808082b08082b, 0x2b08081908081908, 0x2b08081908192b08, 0x2b08081919080808, 0x2b08082b08190819, 0x2b08190808080819, 0x2b08190808081908, 0x2b08190808190808, 0x2b08190808191919, 0x2b08190819080808, 0x2b081908192b0808, 0x2b08191908080808, 0x2b0819191908192b, 0x2b0819192b191908, 0x2b08192b08082b19, 0x2b08192b19080808, 0x2b08192b192b0808, 0x2b082b080808082b, 0x2b082b1908081908, 0x2b082b2b08190819, 0x2b19080808081908, 0x2b19080808190808, 0x2b190808082b1908, 0x2b19080819080808, 0x2b1908082b2b0819, 0x2b1908190819192b, 0x2b1908192b080808, 0x2b19082b19081919, 0x2b19190808080808, 0x2b191908082b082b, 0x2b19190819081908, Line truncated
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 23625
Length: 10812
ReplacementText: 'static dpct::global_memory<const uint64_t, 1> iq2xs_grid(sycl::range(512), {0x0808080808080808, 0x080808080808082b, 0x0808080808081919, 0x0808080808082b08, 0x0808080808082b2b, 0x0808080808190819, 0x0808080808191908, 0x080808080819192b, 0x0808080808192b19, 0x08080808082b0808, 0x08080808082b082b, 0x08080808082b1919, 0x08080808082b2b08, 0x0808080819080819, 0x0808080819081908, 0x080808081908192b, 0x0808080819082b19, 0x0808080819190808, 0x080808081919082b, 0x0808080819191919, 0x0808080819192b08, 0x08080808192b0819, 0x08080808192b1908, 0x080808082b080808, 0x080808082b08082b, 0x080808082b081919, 0x080808082b082b08, 0x080808082b190819, 0x080808082b191908, 0x080808082b192b19, 0x080808082b2b0808, 0x0808081908080819, 0x0808081908081908, 0x080808190808192b, 0x0808081908082b19, 0x0808081908190808, 0x080808190819082b, 0x0808081908191919, 0x0808081908192b08, 0x0808081908192b2b, 0x08080819082b0819, 0x08080819082b1908, 0x0808081919080808, 0x080808191908082b, 0x0808081919081919, 0x0808081919082b08, 0x0808081919190819, 0x0808081919191908, 0x08080819192b0808, 0x08080819192b2b08, 0x080808192b080819, 0x080808192b081908, 0x080808192b190808, 0x0808082b08080808, 0x0808082b0808082b, 0x0808082b08081919, 0x0808082b08082b08, 0x0808082b08190819, 0x0808082b08191908, 0x0808082b082b0808, 0x0808082b19080819, 0x0808082b19081908, 0x0808082b19190808, 0x0808082b19191919, 0x0808082b2b080808, 0x0808082b2b082b2b, 0x0808190808080819, 0x0808190808081908, 0x080819080808192b, 0x0808190808082b19, 0x0808190808190808, 0x080819080819082b, 0x0808190808191919, 0x0808190808192b08, 0x08081908082b0819, 0x08081908082b1908, 0x0808190819080808, 0x080819081908082b, 0x0808190819081919, 0x0808190819082b08, 0x0808190819190819, 0x0808190819191908, 0x080819081919192b, 0x08081908192b0808, 0x080819082b080819, 0x080819082b081908, 0x080819082b190808, 0x0808191908080808, 0x080819190808082b, 0x0808191908081919, 0x0808191908082b08, 0x0808191908190819, 0x0808191908191908, 0x08081919082b0808, 0x0808191919080819, 0x0808191919081908, 0x0808191919190808, 0x08081919192b0819, 0x080819192b080808, 0x0808192b08080819, 0x0808192b08081908, 0x0808192b08190808, 0x0808192b082b192b, 0x0808192b19080808, 0x0808192b1908082b, 0x0808192b2b081908, 0x08082b0808080808, 0x08082b080808082b, 0x08082b0808081919, 0x08082b0808082b08, 0x08082b0808082b2b, 0x08082b0808190819, 0x08082b0808191908, 0x08082b08082b0808, 0x08082b08082b1919, 0x08082b0819080819, 0x08082b0819081908, 0x08082b0819190808, 0x08082b0819192b08, 0x08082b082b080808, 0x08082b082b2b0808, 0x08082b082b2b2b2b, 0x08082b1908080819, 0x08082b1908081908, 0x08082b1908190808, 0x08082b1919080808, 0x08082b192b080819, 0x08082b192b082b19, 0x08082b2b08080808, 0x08082b2b082b0808, 0x08082b2b082b2b08, 0x08082b2b2b19192b, 0x08082b2b2b2b0808, 0x0819080808080819, 0x0819080808081908, 0x081908080808192b, 0x0819080808082b19, 0x0819080808190808, 0x081908080819082b, 0x0819080808191919, 0x0819080808192b08, 0x08190808082b0819, 0x08190808082b1908, 0x0819080819080808, 0x081908081908082b, 0x0819080819081919, 0x0819080819082b08, 0x0819080819190819, 0x0819080819191908, 0x08190808192b0808, 0x08190808192b2b2b, 0x081908082b080819, 0x081908082b081908, 0x081908082b190808, 0x0819081908080808, 0x081908190808082b, 0x0819081908081919, 0x0819081908082b08, 0x0819081908190819, 0x0819081908191908, 0x08190819082b0808, 0x0819081919080819, 0x0819081919081908, 0x0819081919190808, 0x081908192b080808, 0x081908192b191908, 0x081908192b19192b, 0x0819082b08080819, 0x0819082b08081908, 0x0819082b0808192b, 0x0819082b08190808, 0x0819082b19080808, 0x0819082b192b0808, 0x0819190808080808, 0x081919080808082b, 0x0819190808081919, 0x0819190808082b08, 0x0819190808190819, 0x0819190808191908, 0x08191908082b0808, 0x0819190819080819, 0x0819190819081908, 0x0819190819082b19, 0x0819190819190808, 0x08191908192b1908, 0x081919082b080808, 0x0819191908080819, 0x0819191908081908, 0x0819191908190808, 0x0819191919080808, 0x0819192b08080808, 0x0819192b08191908, 0x0819192b19082b19, 0x08192b0808080819, 0x08192b0808081908, 0x08192b0808190808, 0x08192b080819082b, 0x08192b0819080808, 0x08192b0819191908, 0x08192b082b08192b, 0x08192b1908080808, 0x08192b1908081919, 0x08192b19192b192b, 0x08192b2b19190819, 0x08192b2b2b2b2b19, 0x082b080808080808, 0x082b08080808082b, 0x082b080808081919, 0x082b080808082b08, 0x082b080808082b2b, 0x082b080808190819, 0x082b080808191908, 0x082b0808082b0808, 0x082b080819080819, 0x082b080819081908, 0x082b080819190808, 0x082b08082b080808, 0x082b08082b2b0808, 0x082b081908080819, 0x082b081908081908, 0x082b081908190808, 0x082b081919080808, 0x082b081919082b08, 0x082b0819192b1919, 0x082b082b08080808, 0x082b082b082b082b, 0x082b082b2b080808, 0x082b082b2b2b2b08, 0x082b190808080819, 0x082b190808081908, 0x082b190808190808, 0x082b1908082b2b19, 0x082b190819080808, 0x082b191908080808, 0x082b191919080819, 0x082b19191919082b, 0x082b19192b192b19, 0x082b192b08080819, 0x082b192b08192b2b, 0x082b192b2b2b192b, 0x082b2b0808080808, 0x082b2b0808082b08, 0x082b2b0808082b2b, 0x082b2b08082b0808, 0x082b2b0819191919, 0Line truncated
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 34439
Length: 21564
ReplacementText: 'static dpct::global_memory<const uint64_t, 1> iq2s_grid(sycl::range(1024), {0x0808080808080808, 0x080808080808082b, 0x0808080808081919, 0x0808080808082b08, 0x0808080808082b2b, 0x0808080808190819, 0x0808080808191908, 0x080808080819192b, 0x0808080808192b19, 0x08080808082b0808, 0x08080808082b082b, 0x08080808082b1919, 0x08080808082b2b08, 0x0808080819080819, 0x0808080819081908, 0x080808081908192b, 0x0808080819082b19, 0x0808080819190808, 0x080808081919082b, 0x0808080819191919, 0x0808080819192b08, 0x08080808192b0819, 0x08080808192b1908, 0x08080808192b192b, 0x08080808192b2b19, 0x080808082b080808, 0x080808082b08082b, 0x080808082b081919, 0x080808082b082b08, 0x080808082b190819, 0x080808082b191908, 0x080808082b2b0808, 0x080808082b2b1919, 0x080808082b2b2b2b, 0x0808081908080819, 0x0808081908081908, 0x080808190808192b, 0x0808081908082b19, 0x0808081908190808, 0x080808190819082b, 0x0808081908191919, 0x0808081908192b08, 0x08080819082b0819, 0x08080819082b1908, 0x0808081919080808, 0x080808191908082b, 0x0808081919081919, 0x0808081919082b08, 0x0808081919190819, 0x0808081919191908, 0x080808191919192b, 0x0808081919192b19, 0x08080819192b0808, 0x08080819192b1919, 0x08080819192b2b08, 0x080808192b080819, 0x080808192b081908, 0x080808192b190808, 0x080808192b19082b, 0x080808192b191919, 0x080808192b2b0819, 0x080808192b2b1908, 0x0808082b08080808, 0x0808082b0808082b, 0x0808082b08081919, 0x0808082b08082b08, 0x0808082b08190819, 0x0808082b08191908, 0x0808082b082b0808, 0x0808082b082b2b2b, 0x0808082b19080819, 0x0808082b19081908, 0x0808082b1908192b, 0x0808082b19082b19, 0x0808082b19190808, 0x0808082b19191919, 0x0808082b2b080808, 0x0808082b2b081919, 0x0808082b2b082b2b, 0x0808082b2b191908, 0x0808082b2b2b082b, 0x0808190808080819, 0x0808190808081908, 0x080819080808192b, 0x0808190808082b19, 0x0808190808190808, 0x080819080819082b, 0x0808190808191919, 0x0808190808192b08, 0x08081908082b0819, 0x08081908082b1908, 0x08081908082b192b, 0x08081908082b2b19, 0x0808190819080808, 0x080819081908082b, 0x0808190819081919, 0x0808190819082b08, 0x0808190819082b2b, 0x0808190819190819, 0x0808190819191908, 0x080819081919192b, 0x0808190819192b19, 0x08081908192b0808, 0x08081908192b082b, 0x08081908192b1919, 0x080819082b080819, 0x080819082b081908, 0x080819082b08192b, 0x080819082b082b19, 0x080819082b190808, 0x080819082b191919, 0x080819082b192b08, 0x080819082b2b0819, 0x080819082b2b1908, 0x0808191908080808, 0x080819190808082b, 0x0808191908081919, 0x0808191908082b08, 0x0808191908082b2b, 0x0808191908190819, 0x0808191908191908, 0x080819190819192b, 0x0808191908192b19, 0x08081919082b0808, 0x08081919082b1919, 0x08081919082b2b08, 0x0808191919080819, 0x0808191919081908, 0x080819191908192b, 0x0808191919082b19, 0x0808191919190808, 0x080819191919082b, 0x0808191919191919, 0x0808191919192b08, 0x08081919192b0819, 0x08081919192b1908, 0x080819192b080808, 0x080819192b08082b, 0x080819192b081919, 0x080819192b082b08, 0x080819192b190819, 0x080819192b191908, 0x080819192b2b0808, 0x0808192b08080819, 0x0808192b08081908, 0x0808192b0808192b, 0x0808192b08082b19, 0x0808192b08190808, 0x0808192b08191919, 0x0808192b19080808, 0x0808192b19081919, 0x0808192b19082b08, 0x0808192b19190819, 0x0808192b19191908, 0x0808192b192b0808, 0x0808192b2b080819, 0x0808192b2b081908, 0x0808192b2b190808, 0x08082b0808080808, 0x08082b080808082b, 0x08082b0808081919, 0x08082b0808082b08, 0x08082b0808190819, 0x08082b0808191908, 0x08082b080819192b, 0x08082b0808192b19, 0x08082b08082b0808, 0x08082b08082b1919, 0x08082b08082b2b2b, 0x08082b0819080819, 0x08082b0819081908, 0x08082b081908192b, 0x08082b0819082b19, 0x08082b0819190808, 0x08082b081919082b, 0x08082b0819191919, 0x08082b0819192b08, 0x08082b08192b0819, 0x08082b08192b1908, 0x08082b082b080808, 0x08082b082b081919, 0x08082b082b191908, 0x08082b082b2b2b2b, 0x08082b1908080819, 0x08082b1908081908, 0x08082b1908190808, 0x08082b190819082b, 0x08082b1908191919, 0x08082b1908192b08, 0x08082b19082b0819, 0x08082b1919080808, 0x08082b1919081919, 0x08082b1919082b08, 0x08082b1919190819, 0x08082b1919191908, 0x08082b19192b0808, 0x08082b192b080819, 0x08082b192b190808, 0x08082b2b08080808, 0x08082b2b08190819, 0x08082b2b08191908, 0x08082b2b082b082b, 0x08082b2b082b2b08, 0x08082b2b082b2b2b, 0x08082b2b19190808, 0x08082b2b2b192b19, 0x0819080808080819, 0x0819080808081908, 0x081908080808192b, 0x0819080808082b19, 0x0819080808190808, 0x081908080819082b, 0x0819080808191919, 0x0819080808192b08, 0x08190808082b0819, 0x08190808082b1908, 0x08190808082b192b, 0x0819080819080808, 0x081908081908082b, 0x0819080819081919, 0x0819080819082b08, 0x0819080819190819, 0x0819080819191908, 0x081908081919192b, 0x0819080819192b19, 0x08190808192b0808, 0x08190808192b082b, 0x08190808192b1919, 0x08190808192b2b08, 0x081908082b080819, 0x081908082b081908, 0x081908082b08192b, 0x081908082b190808, 0x081908082b191919, 0x081908082b192b08, 0x081908082b2b0819, 0x081908082b2b1908, 0x0819081908080808, 0x081908190808082b, 0x0819081908081919, 0x0819081908082b08, 0x0819081908082b2b, 0x0819081908190819, 0x0819081908191908, 0x081908190819192b, 0Line truncated
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 56005
Length: 3261
ReplacementText: 'static dpct::global_memory<const uint32_t, 1> iq3xxs_grid(sycl::range(256), {0x04040404, 0x04040414, 0x04040424, 0x04040c0c, 0x04040c1c, 0x04040c3e, 0x04041404, 0x04041414, 0x04041c0c, 0x04042414, 0x04043e1c, 0x04043e2c, 0x040c040c, 0x040c041c, 0x040c0c04, 0x040c0c14, 0x040c140c, 0x040c142c, 0x040c1c04, 0x040c1c14, 0x040c240c, 0x040c2c24, 0x040c3e04, 0x04140404, 0x04140414, 0x04140424, 0x04140c0c, 0x04141404, 0x04141414, 0x04141c0c, 0x04141c1c, 0x04141c3e, 0x04142c0c, 0x04142c3e, 0x04143e2c, 0x041c040c, 0x041c043e, 0x041c0c04, 0x041c0c14, 0x041c142c, 0x041c3e04, 0x04240c1c, 0x04241c3e, 0x04242424, 0x04242c3e, 0x04243e1c, 0x04243e2c, 0x042c040c, 0x042c043e, 0x042c1c14, 0x042c2c14, 0x04341c2c, 0x04343424, 0x043e0c04, 0x043e0c24, 0x043e0c34, 0x043e241c, 0x043e340c, 0x0c04040c, 0x0c04041c, 0x0c040c04, 0x0c040c14, 0x0c04140c, 0x0c04141c, 0x0c041c04, 0x0c041c14, 0x0c041c24, 0x0c04243e, 0x0c042c04, 0x0c0c0404, 0x0c0c0414, 0x0c0c0c0c, 0x0c0c1404, 0x0c0c1414, 0x0c14040c, 0x0c14041c, 0x0c140c04, 0x0c140c14, 0x0c14140c, 0x0c141c04, 0x0c143e14, 0x0c1c0404, 0x0c1c0414, 0x0c1c1404, 0x0c1c1c0c, 0x0c1c2434, 0x0c1c3434, 0x0c24040c, 0x0c24042c, 0x0c242c04, 0x0c2c1404, 0x0c2c1424, 0x0c2c2434, 0x0c2c3e0c, 0x0c34042c, 0x0c3e1414, 0x0c3e2404, 0x14040404, 0x14040414, 0x14040c0c, 0x14040c1c, 0x14041404, 0x14041414, 0x14041434, 0x14041c0c, 0x14042414, 0x140c040c, 0x140c041c, 0x140c042c, 0x140c0c04, 0x140c0c14, 0x140c140c, 0x140c1c04, 0x140c341c, 0x140c343e, 0x140c3e04, 0x14140404, 0x14140414, 0x14140c0c, 0x14140c3e, 0x14141404, 0x14141414, 0x14141c3e, 0x14142404, 0x14142c2c, 0x141c040c, 0x141c0c04, 0x141c0c24, 0x141c3e04, 0x141c3e24, 0x14241c2c, 0x14242c1c, 0x142c041c, 0x142c143e, 0x142c240c, 0x142c3e24, 0x143e040c, 0x143e041c, 0x143e0c34, 0x143e242c, 0x1c04040c, 0x1c040c04, 0x1c040c14, 0x1c04140c, 0x1c04141c, 0x1c042c04, 0x1c04342c, 0x1c043e14, 0x1c0c0404, 0x1c0c0414, 0x1c0c1404, 0x1c0c1c0c, 0x1c0c2424, 0x1c0c2434, 0x1c14040c, 0x1c14041c, 0x1c140c04, 0x1c14142c, 0x1c142c14, 0x1c143e14, 0x1c1c0c0c, 0x1c1c1c1c, 0x1c241c04, 0x1c24243e, 0x1c243e14, 0x1c2c0404, 0x1c2c0434, 0x1c2c1414, 0x1c2c2c2c, 0x1c340c24, 0x1c341c34, 0x1c34341c, 0x1c3e1c1c, 0x1c3e3404, 0x24040424, 0x24040c3e, 0x24041c2c, 0x24041c3e, 0x24042c1c, 0x24042c3e, 0x240c3e24, 0x24141404, 0x24141c3e, 0x24142404, 0x24143404, 0x24143434, 0x241c043e, 0x241c242c, 0x24240424, 0x24242c0c, 0x24243424, 0x242c142c, 0x242c241c, 0x242c3e04, 0x243e042c, 0x243e0c04, 0x243e0c14, 0x243e1c04, 0x2c040c14, 0x2c04240c, 0x2c043e04, 0x2c0c0404, 0x2c0c0434, 0x2c0c1434, 0x2c0c2c2c, 0x2c140c24, 0x2c141c14, 0x2c143e14, 0x2c1c0414, 0x2c1c2c1c, 0x2c240c04, 0x2c24141c, 0x2c24143e, 0x2c243e14, 0x2c2c0414, 0x2c2c1c0c, 0x2c342c04, 0x2c3e1424, 0x2c3e2414, 0x34041424, 0x34042424, 0x34042434, 0x34043424, 0x340c140c, 0x340c340c, 0x34140c3e, 0x34143424, 0x341c1c04, 0x341c1c34, 0x34242424, 0x342c042c, 0x342c2c14, 0x34341c1c, 0x343e041c, 0x343e140c, 0x3e04041c, 0x3e04042c, 0x3e04043e, 0x3e040c04, 0x3e041c14, 0x3e042c14, 0x3e0c1434, 0x3e0c2404, 0x3e140c14, 0x3e14242c, 0x3e142c14, 0x3e1c0404, 0x3e1c0c2c, 0x3e1c1c1c, 0x3e1c3404, 0x3e24140c, 0x3e24240c, 0x3e2c0404, 0x3e2c0414, 0x3e2c1424, 0x3e341c04});'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 59268
Length: 6459
ReplacementText: 'static dpct::global_memory<const uint32_t, 1> iq3s_grid(sycl::range(512), {0x01010101, 0x01010103, 0x01010105, 0x0101010b, 0x0101010f, 0x01010301, 0x01010303, 0x01010305, 0x01010309, 0x0101030d, 0x01010501, 0x01010503, 0x0101050b, 0x01010707, 0x01010901, 0x01010905, 0x0101090b, 0x0101090f, 0x01010b03, 0x01010b07, 0x01010d01, 0x01010d05, 0x01010f03, 0x01010f09, 0x01010f0f, 0x01030101, 0x01030103, 0x01030105, 0x01030109, 0x01030301, 0x01030303, 0x0103030b, 0x01030501, 0x01030507, 0x0103050f, 0x01030703, 0x0103070b, 0x01030909, 0x01030d03, 0x01030d0b, 0x01030f05, 0x01050101, 0x01050103, 0x0105010b, 0x0105010f, 0x01050301, 0x01050307, 0x0105030d, 0x01050503, 0x0105050b, 0x01050701, 0x01050709, 0x01050905, 0x0105090b, 0x0105090f, 0x01050b03, 0x01050b07, 0x01050f01, 0x01050f07, 0x01070107, 0x01070303, 0x0107030b, 0x01070501, 0x01070505, 0x01070703, 0x01070707, 0x0107070d, 0x01070909, 0x01070b01, 0x01070b05, 0x01070d0f, 0x01070f03, 0x01070f0b, 0x01090101, 0x01090307, 0x0109030f, 0x01090503, 0x01090509, 0x01090705, 0x01090901, 0x01090907, 0x01090b03, 0x01090f01, 0x010b0105, 0x010b0109, 0x010b0501, 0x010b0505, 0x010b050d, 0x010b0707, 0x010b0903, 0x010b090b, 0x010b090f, 0x010b0d0d, 0x010b0f07, 0x010d010d, 0x010d0303, 0x010d0307, 0x010d0703, 0x010d0b05, 0x010d0f03, 0x010f0101, 0x010f0105, 0x010f0109, 0x010f0501, 0x010f0505, 0x010f050d, 0x010f0707, 0x010f0b01, 0x010f0b09, 0x03010101, 0x03010103, 0x03010105, 0x03010109, 0x03010301, 0x03010303, 0x03010307, 0x0301030b, 0x0301030f, 0x03010501, 0x03010505, 0x03010703, 0x03010709, 0x0301070d, 0x03010b09, 0x03010b0d, 0x03010d03, 0x03010f05, 0x03030101, 0x03030103, 0x03030107, 0x0303010d, 0x03030301, 0x03030309, 0x03030503, 0x03030701, 0x03030707, 0x03030903, 0x03030b01, 0x03030b05, 0x03030f01, 0x03030f0d, 0x03050101, 0x03050305, 0x0305030b, 0x0305030f, 0x03050501, 0x03050509, 0x03050705, 0x03050901, 0x03050907, 0x03050b0b, 0x03050d01, 0x03050f05, 0x03070103, 0x03070109, 0x0307010f, 0x03070301, 0x03070307, 0x03070503, 0x0307050f, 0x03070701, 0x03070709, 0x03070903, 0x03070d05, 0x03070f01, 0x03090107, 0x0309010b, 0x03090305, 0x03090309, 0x03090703, 0x03090707, 0x03090905, 0x0309090d, 0x03090b01, 0x03090b09, 0x030b0103, 0x030b0301, 0x030b0307, 0x030b0503, 0x030b0701, 0x030b0705, 0x030b0b03, 0x030d0501, 0x030d0509, 0x030d050f, 0x030d0909, 0x030d090d, 0x030f0103, 0x030f0107, 0x030f0301, 0x030f0305, 0x030f0503, 0x030f070b, 0x030f0903, 0x030f0d05, 0x030f0f01, 0x05010101, 0x05010103, 0x05010107, 0x0501010b, 0x0501010f, 0x05010301, 0x05010305, 0x05010309, 0x0501030d, 0x05010503, 0x05010507, 0x0501050f, 0x05010701, 0x05010705, 0x05010903, 0x05010907, 0x0501090b, 0x05010b01, 0x05010b05, 0x05010d0f, 0x05010f01, 0x05010f07, 0x05010f0b, 0x05030101, 0x05030105, 0x05030301, 0x05030307, 0x0503030f, 0x05030505, 0x0503050b, 0x05030703, 0x05030709, 0x05030905, 0x05030b03, 0x05050103, 0x05050109, 0x0505010f, 0x05050503, 0x05050507, 0x05050701, 0x0505070f, 0x05050903, 0x05050b07, 0x05050b0f, 0x05050f03, 0x05050f09, 0x05070101, 0x05070105, 0x0507010b, 0x05070303, 0x05070505, 0x05070509, 0x05070703, 0x05070707, 0x05070905, 0x05070b01, 0x05070d0d, 0x05090103, 0x0509010f, 0x05090501, 0x05090507, 0x05090705, 0x0509070b, 0x05090903, 0x05090f05, 0x05090f0b, 0x050b0109, 0x050b0303, 0x050b0505, 0x050b070f, 0x050b0901, 0x050b0b07, 0x050b0f01, 0x050d0101, 0x050d0105, 0x050d010f, 0x050d0503, 0x050d0b0b, 0x050d0d03, 0x050f010b, 0x050f0303, 0x050f050d, 0x050f0701, 0x050f0907, 0x050f0b01, 0x07010105, 0x07010303, 0x07010307, 0x0701030b, 0x0701030f, 0x07010505, 0x07010703, 0x07010707, 0x0701070b, 0x07010905, 0x07010909, 0x0701090f, 0x07010b03, 0x07010d07, 0x07010f03, 0x07030103, 0x07030107, 0x0703010b, 0x07030309, 0x07030503, 0x07030507, 0x07030901, 0x07030d01, 0x07030f05, 0x07030f0d, 0x07050101, 0x07050305, 0x07050501, 0x07050705, 0x07050709, 0x07050b01, 0x07070103, 0x07070301, 0x07070309, 0x07070503, 0x07070507, 0x0707050f, 0x07070701, 0x07070903, 0x07070907, 0x0707090f, 0x07070b0b, 0x07070f07, 0x07090107, 0x07090303, 0x0709030d, 0x07090505, 0x07090703, 0x07090b05, 0x07090d01, 0x07090d09, 0x070b0103, 0x070b0301, 0x070b0305, 0x070b050b, 0x070b0705, 0x070b0909, 0x070b0b0d, 0x070b0f07, 0x070d030d, 0x070d0903, 0x070f0103, 0x070f0107, 0x070f0501, 0x070f0505, 0x070f070b, 0x09010101, 0x09010109, 0x09010305, 0x09010501, 0x09010509, 0x0901050f, 0x09010705, 0x09010903, 0x09010b01, 0x09010f01, 0x09030105, 0x0903010f, 0x09030303, 0x09030307, 0x09030505, 0x09030701, 0x0903070b, 0x09030907, 0x09030b03, 0x09030b0b, 0x09050103, 0x09050107, 0x09050301, 0x0905030b, 0x09050503, 0x09050707, 0x09050901, 0x09050b0f, 0x09050d05, 0x09050f01, 0x09070109, 0x09070303, 0x09070307, 0x09070501, 0x09070505, 0x09070703, 0x0907070b, 0x09090101, 0x09090105, 0x09090509, 0x0909070f, 0x09090901, 0x09090f03, 0x090b010b, 0x090b010f, 0x090b0503, 0x090b0d05, 0x090d0307, 0x090d0709, 0x090d0d01, 0x090f0301, 0x090f030b, 0x090f0701, 0x090f0907, 0x090f0b03, 0x0b010105, 0x0b010301, 0x0b010309, 0x0b010505, 0x0b010901, 0x0b010909, 0x0b01Line truncated
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 65765
Length: 138
ReplacementText: 'static dpct::global_memory<const int8_t, 1> kvalues_iq4nl(sycl::range(16), {-127, -104, -83, -65, -49, -35, -22, -10, 1, 13, 25, 38, 53, 69, 89, 113});'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 66051
Length: 119
ReplacementText: 'static dpct::global_memory<const int8_t, 1> kvalues_fp4(sycl::range(16), {0, 1, 2, 3, 4, 6, 8, 12, 0, -1, -2, -3, -4, -6, -8, -12});'
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
- FilePath: '/work/Strata_B70/third_party/ggml/ggml-common.h'
Offset: 109428
Length: 25670
ReplacementText: 'static dpct::global_memory<const uint32_t, 1> iq1s_grid_gpu(sycl::range(NGRID_IQ1S), {0x00000000, 0x00000002, 0x00000101, 0x00000200, 0x00000202, 0x00010001, 0x00010101, 0x00020000, 0x00020002, 0x00020200, 0x00020202, 0x01000101, 0x01010001, 0x01010100, 0x01010102, 0x01020101, 0x02000000, 0x02000002, 0x02000200, 0x02000202, 0x02010101, 0x02020000, 0x02020002, 0x02020200, 0x02020202, 0x00000110, 0x00000111, 0x00010011, 0x00010110, 0x00010112, 0x00010211, 0x00010212, 0x00020111, 0x01000011, 0x01000112, 0x01000211, 0x01010012, 0x01010111, 0x01010212, 0x01020011, 0x01020110, 0x01020112, 0x01020210, 0x02000111, 0x02010011, 0x02010110, 0x02010112, 0x02020111, 0x00000020, 0x00000022, 0x00000220, 0x00000222, 0x00010121, 0x00020020, 0x00020022, 0x00020220, 0x00020222, 0x01000121, 0x01010021, 0x01010221, 0x01020120, 0x01020221, 0x02000020, 0x02000022, 0x02000220, 0x02000222, 0x02010021, 0x02010121, 0x02010221, 0x02020020, 0x02020022, 0x02020220, 0x02020222, 0x00011001, 0x00011100, 0x00011102, 0x00021101, 0x01001001, 0x01001201, 0x01011101, 0x01011202, 0x01021100, 0x01021101, 0x02011001, 0x02011201, 0x02021101, 0x00001011, 0x00001110, 0x00001111, 0x00001112, 0x00011111, 0x00011210, 0x00011212, 0x00021211, 0x01001010, 0x01001111, 0x01001212, 0x01011010, 0x01011011, 0x01011110, 0x01011111, 0x01011112, 0x01011211, 0x01021010, 0x01021012, 0x01021111, 0x01021210, 0x01021212, 0x02001011, 0x02011011, 0x02011111, 0x02011210, 0x02011212, 0x02021011, 0x02021110, 0x02021111, 0x02021112, 0x02021211, 0x00011120, 0x00011221, 0x01001021, 0x01001120, 0x01011020, 0x01011022, 0x01011121, 0x01011220, 0x01021020, 0x01021021, 0x01021122, 0x01021221, 0x02001121, 0x02011021, 0x02011120, 0x02011221, 0x00002000, 0x00002002, 0x00002200, 0x00002202, 0x00012101, 0x00022000, 0x00022002, 0x00022200, 0x00022202, 0x01002101, 0x01012001, 0x01012102, 0x01022101, 0x02002000, 0x02002002, 0x02002200, 0x02002202, 0x02012101, 0x02022000, 0x02022002, 0x02022200, 0x02022202, 0x00002111, 0x00012011, 0x00012110, 0x00012211, 0x00022110, 0x00022111, 0x01002011, 0x01012010, 0x01012011, 0x01012111, 0x01022011, 0x01022110, 0x01022211, 0x02012011, 0x02012110, 0x02012112, 0x02012211, 0x02022111, 0x00002020, 0x00002022, 0x00002220, 0x00002222, 0x00012121, 0x00022020, 0x00022022, 0x00022220, 0x00022222, 0x01002121, 0x01012021, 0x01012221, 0x01022021, 0x01022121, 0x02002020, 0x02002022, 0x02002121, 0x02002220, 0x02002222, 0x02012121, 0x02022020, 0x02022022, 0x02022220, 0x02022222, 0x00110000, 0x00110001, 0x00110100, 0x00110201, 0x00120100, 0x00120101, 0x01100001, 0x01100100, 0x01110000, 0x01110101, 0x01110200, 0x01120001, 0x01120100, 0x01120101, 0x01120201, 0x02110001, 0x02110100, 0x02110102, 0x02120001, 0x02120101, 0x00100011, 0x00100110, 0x00100112, 0x00100211, 0x00110010, 0x00110012, 0x00110111, 0x00110210, 0x00120011, 0x00120110, 0x00120211, 0x01100111, 0x01100212, 0x01110010, 0x01110011, 0x01110012, 0x01110110, 0x01110111, 0x01110112, 0x01110211, 0x01120010, 0x01120111, 0x02100110, 0x02110012, 0x02110111, 0x02120011, 0x02120110, 0x00110021, 0x00110120, 0x00110122, 0x00120121, 0x01100020, 0x01100122, 0x01100221, 0x01110022, 0x01110121, 0x01110220, 0x01110222, 0x01120120, 0x01120122, 0x02100121, 0x02110021, 0x02110120, 0x02110122, 0x02120121, 0x00101001, 0x00101102, 0x00101201, 0x00111100, 0x00111101, 0x00111200, 0x00111201, 0x00121001, 0x00121102, 0x01101001, 0x01101101, 0x01101102, 0x01101200, 0x01101202, 0x01111001, 0x01111100, 0x01111101, 0x01111102, 0x01111201, 0x01121002, 0x01121101, 0x01121200, 0x02101100, 0x02101201, 0x02111000, 0x02111100, 0x02111101, 0x02111200, 0x02111201, 0x02111202, 0x02121001, 0x02121100, 0x02121101, 0x02121201, 0x00101012, 0x00101111, 0x00101212, 0x00111011, 0x00111110, 0x00111111, 0x00111112, 0x00111211, 0x00121010, 0x00121012, 0x00121111, 0x00121210, 0x00121212, 0x01101011, 0x01101110, 0x01101111, 0x01101112, 0x01111011, 0x01111012, 0x01111110, 0x01111111, 0x01111112, 0x01111211, 0x01111212, 0x01121011, 0x01121110, 0x01121111, 0x01121112, 0x01121211, 0x02101010, 0x02101012, 0x02101110, 0x02101111, 0x02101210, 0x02101212, 0x02111010, 0x02111011, 0x02111110, 0x02111111, 0x02111112, 0x02111211, 0x02111212, 0x02121010, 0x02121012, 0x02121111, 0x00101021, 0x00101120, 0x00101121, 0x00101122, 0x00111121, 0x00111122, 0x00111220, 0x00111222, 0x00121021, 0x00121122, 0x01101020, 0x01101022, 0x01101120, 0x01101121, 0x01101220, 0x01101222, 0x01111021, 0x01111121, 0x01111122, 0x01111220, 0x01111221, 0x01121021, 0x01121120, 0x01121121, 0x01121220, 0x01121221, 0x01121222, 0x02101122, 0x02101222, 0x02111022, 0x02111121, 0x02121120, 0x02121221, 0x00112001, 0x00112102, 0x00122101, 0x01102001, 0x01102100, 0x01102102, 0x01102201, 0x01112000, 0x01112101, 0x01112200, 0x01112202, 0x01122000, 0x01122001, 0x01122100, 0x01122102, 0x01122201, 0x02102101, 0x02112001, 0x02112100, 0x02122101, 0x00112010, 0x00112012, 0x00112111, 0x00112212, 0x00122011, 0x00122111, 0x01102012, 0x01102110, 0x01102111, 0x01102210, 0x01112011, 0x01112110, 0x01112Line truncated
ConstantFlag: ''
ConstantOffset: 0
InitStr: ''
NewHostVarName: ''
BlockLevelFormatFlag: false
MainSourceFilesDigest:
- MainSourceFile: ''
Digest: ''
HasCUDASyntax: false
DpctVersion: 2025.3.0
SDKVersionMajor: '12'
SDKVersionMinor: '8'
MainHelperFileName: ''
USMLevel: ''
FeatureMap: {}
CompileTargets: {}
OptionMap:
AnalysisScopePath:
Value: ''
ValueVec:
- '/work/Strata_B70'
Specified: false
AsyncHandler:
Value: 'true'
Specified: true
BuildScript:
Value: '0'
Specified: false
CodePinEnabled:
Value: 'false'
Specified: false
CommentsEnabled:
Value: 'false'
Specified: false
CompilationsDir:
Value: '/work/Strata_B70'
Specified: true
CtadEnabled:
Value: 'true'
Specified: true
EnablepProfiling:
Value: 'false'
Specified: false
ExperimentalFlag:
Value: '47966'
Specified: true
ExplicitNamespace:
Value: '20'
Specified: false
ExtensionDDFlag:
Value: '0'
Specified: false
ExtensionDEFlag:
Value: '4294967295'
Specified: false
HelperFuncPreferenceFlag:
Value: '0'
Specified: false
NDRangeDim:
Value: '3'
Specified: true
NoDRYPattern:
Value: 'false'
Specified: false
OptimizeMigration:
Value: 'true'
Specified: true
ProcessAll:
Value: 'false'
Specified: false
RuleFile:
Value: ''
Specified: false
SyclNamedLambda:
Value: 'true'
Specified: true
UseSYCLCompat:
Value: 'false'
Specified: false
UsmLevel:
Value: '1'
Specified: false
...
+182
View File
@@ -0,0 +1,182 @@
#!/usr/bin/env python3
"""GPU telemetry sampler for an Intel Arc on the xe driver (runs as root: tools/intel/gpustat.service).
Writes /run/gpustat.json every INTERVAL s; Strata's web app (serve/telemetry.py) shows it in the Monitor tab:
name, vram_used_mb / vram_total_mb (sum of drm-resident-vram0 over unique drm
clients from /proc/*/fdinfo - the only VRAM accounting xe exposes; root-only),
busy_pct (compute/render cycle deltas), temp_pkg/temp_vram (hwmon 'xe'),
power_w / pkg_power_w (energy counter deltas over a POWER_WINDOW s window: the counters update in
bursts, so a 3 s delta swings 0.6 <-> 48 W), power_cap_w, fan_rpm, freq_mhz, the PCIe link the card
trained at (the first upstream port wider than x1 - the card's own functions sit behind an internal
x1 switch), the hottest VRAM channel, and the host's 1-minute load. Device totals only.
Without it the Monitor tab still shows temperature, power and the PCIe link (sysfs), but not load or VRAM: xe
reports those per client in /proc/*/fdinfo, which only root can read.
Install: sudo install -m 755 tools/intel/gpustat.py /usr/local/sbin/
sudo install -m 644 tools/intel/gpustat.service /etc/systemd/system/ && sudo systemctl enable --now gpustat
Env: GPUSTAT_INTERVAL (s), GPUSTAT_POWER_WINDOW (s), GPUSTAT_PCI (the card, e.g. 0000:03:00.0; default the first
Intel GPU on xe), GPUSTAT_VRAM_MB (the total; default the card's largest PCI BAR, which maps all of VRAM with
resizable BAR - a little above what the runtime reports as usable).
"""
import collections, glob, json, os, subprocess, time
OUT = "/run/gpustat.json"
INTERVAL = float(os.environ.get("GPUSTAT_INTERVAL", "3")) # each sample scans /proc/*/fd; keep it modest
NAMES = {"e223": "Intel(R) Arc(TM) Pro B70 Graphics"}
def find_card():
"""The first Intel GPU on the xe driver (it has tile*/gt*), as a PCI address."""
for d in sorted(glob.glob("/sys/class/drm/card[0-9]*/device")):
try:
if open(f"{d}/vendor").read().strip() == "0x8086" and glob.glob(f"{d}/tile*/gt*"):
return os.path.basename(os.path.realpath(d))
except OSError:
continue
return None
PCI = os.environ.get("GPUSTAT_PCI") or find_card() or "0000:00:00.0"
def vram_total_mb():
if os.environ.get("GPUSTAT_VRAM_MB"):
return int(os.environ["GPUSTAT_VRAM_MB"])
try: # with resizable BAR the largest BAR maps all of VRAM
sizes = [int(e, 16) - int(s, 16) + 1 for s, e, _ in
(l.split() for l in open(f"/sys/bus/pci/devices/{PCI}/resource") if l.strip())]
return max(sizes) // 2**20
except (OSError, ValueError):
return 0
def card_name(dev_id):
if dev_id in NAMES:
return NAMES[dev_id]
try:
out = subprocess.run(["lspci", "-mm", "-s", PCI], capture_output=True, text=True, timeout=5).stdout
parts = [p.strip('"') for p in out.split('" "')]
if len(parts) >= 3 and parts[2]:
return parts[2]
except (OSError, subprocess.SubprocessError):
pass
return f"Intel GPU 8086:{dev_id}"
TOTAL_MB = vram_total_mb()
POWER_WINDOW = float(os.environ.get("GPUSTAT_POWER_WINDOW", "15"))
GEN = {"2.5": 1, "5.0": 2, "8.0": 3, "16.0": 4, "32.0": 5, "64.0": 6}
def pcie_link():
"""The link the card trained at: walk up from the GPU function to the first port wider than x1."""
d = os.path.realpath(f"/sys/bus/pci/devices/{PCI}")
chain = []
while d.startswith("/sys/devices/pci") and os.path.exists(f"{d}/current_link_speed"):
chain.append(d); d = os.path.dirname(d)
def link(p, kind):
sp = (rd(f"{p}/{kind}_link_speed", "") or "").split(" ")[0]
return {"gen": GEN.get(sp), "gts": sp, "width": int(rd(f"{p}/{kind}_link_width", "0") or 0)}
for i, p in enumerate(chain):
cur = link(p, "current")
if cur["width"] > 1:
root = chain[-1] # the CPU's root port: what the slot can do
return {"cur": cur, "card_max": link(p, "max"), "slot_max": link(root, "max")}
return None
def hwmon_dir():
for n in glob.glob("/sys/class/hwmon/hwmon*/name"):
if open(n).read().strip() == "xe":
return os.path.dirname(n)
return None
def rd(p, default=None):
try:
return open(p).read().strip()
except Exception:
return default
def hw_temps(h):
t = {}
for lab in glob.glob(f"{h}/temp*_label"):
name = rd(lab); v = rd(lab.replace("_label", "_input"))
if name and v: t[name] = int(v) / 1000
return t
def clients():
"""{client_id: {pid, comm, vram_kb, cycles, total_cycles}} across all processes."""
res = {}
for pdir in glob.glob("/proc/[0-9]*"):
try:
fds = os.listdir(f"{pdir}/fd")
except Exception:
continue
for fd in fds:
try:
if not os.readlink(f"{pdir}/fd/{fd}").startswith("/dev/dri/"):
continue
info = dict(l.split(":\t", 1) for l in open(f"{pdir}/fdinfo/{fd}").read().splitlines() if l.startswith("drm-"))
except Exception:
continue
cid = info.get("drm-client-id")
if not cid or cid in res:
continue
kb = lambda k: int(info.get(k, "0").split()[0] or 0)
cyc = max(kb("drm-cycles-rcs"), kb("drm-cycles-ccs"))
tot = max(kb("drm-total-cycles-rcs"), kb("drm-total-cycles-ccs"))
res[cid] = {"pid": int(pdir[6:]), "comm": rd(f"{pdir}/comm", "?"),
"cg": rd(f"{pdir}/cgroup", ""), "vram_kb": kb("drm-resident-vram0"), "cycles": cyc, "total": tot}
return res
def main():
h = hwmon_dir()
dev_id = (rd(f"/sys/bus/pci/devices/{PCI}/device", "0x0") or "0x0")[2:]
name = card_name(dev_id)
prev = {}; t_prev = time.time()
ring = collections.deque() # (t, card uJ, pkg uJ) over the last POWER_WINDOW s
link = pcie_link(); link_t = time.time()
while True:
now = time.time(); dt = max(now - t_prev, 1e-3)
cl = clients()
busy = 0.0
for cid, c in cl.items():
p = prev.get(cid)
if p and c["total"] > p["total"]:
busy += (c["cycles"] - p["cycles"]) / (c["total"] - p["total"]) * 100
e = int(rd(f"{h}/energy1_input", "0") or 0) if h else 0
e2 = int(rd(f"{h}/energy2_input", "0") or 0) if h else 0
ring.append((now, e, e2))
while len(ring) > 2 and now - ring[1][0] >= POWER_WINDOW:
ring.popleft()
t0, ea, eb = ring[0]
span = now - t0
power = (e - ea) / 1e6 / span if span >= 2.5 and e >= ea else None
pkg_power = (e2 - eb) / 1e6 / span if span >= 2.5 and e2 >= eb else None
if now - link_t > 30: # the link can retrain (power saving, errors): re-read it
link = pcie_link(); link_t = now
temps = hw_temps(h) if h else {}
vram_ch = [v for k, v in temps.items() if k.startswith("vram_ch_")]
cap = rd(f"{h}/power1_cap") if h else None
used_mb = sum(c["vram_kb"] for c in cl.values()) // 1024
out = {
"name": name, "pci": PCI, "ts": now,
"vram_used_mb": used_mb, "vram_total_mb": TOTAL_MB,
"busy_pct": round(min(busy, 100), 1),
"temp_pkg": temps.get("pkg"), "temp_vram": temps.get("vram"),
"power_w": None if power is None else round(power, 1),
"pkg_power_w": None if pkg_power is None else round(pkg_power, 1),
"power_cap_w": round(int(cap) / 1e6) if cap and cap.isdigit() and int(cap) > 0 else None,
"temp_vram_max": max(vram_ch) if vram_ch else None,
"temp_pcie": temps.get("pcie"), "temp_mctrl": temps.get("mctrl"),
"pcie": link,
"host_load1": round(os.getloadavg()[0], 2), "host_cpus": os.cpu_count(),
"energy_j": round(e / 1e6, 1), # cumulative card energy (hwmon energy1 = "card", uJ)
"fan_rpm": int(rd(f"{h}/fan1_input", "0") or 0) if h else None,
"freq_mhz": int(rd(glob.glob(f"/sys/bus/pci/devices/{PCI}/tile0/gt0/freq0/act_freq")[0], "0") or 0)
if glob.glob(f"/sys/bus/pci/devices/{PCI}/tile0/gt0/freq0/act_freq") else None,
}
tmp = OUT + ".tmp"
with open(tmp, "w") as f: json.dump(out, f)
os.chmod(tmp, 0o644); os.replace(tmp, OUT)
prev, t_prev = cl, now
time.sleep(INTERVAL)
if __name__ == "__main__":
main()
+10
View File
@@ -0,0 +1,10 @@
[Unit]
Description=Intel Arc telemetry sampler -> /run/gpustat.json (Strata's Monitor tab: GPU load and VRAM)
[Service]
ExecStart=/usr/bin/python3 -u /usr/local/sbin/gpustat.py
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target