File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -100,15 +100,18 @@ function ipc_properties(drv::ZeDriver)
100
100
)
101
101
end
102
102
103
- # FIXME : throws ZE_RESULT_ERROR_UNSUPPORTED_FEATURE
104
103
function extension_properties (drv:: ZeDriver )
105
104
count_ref = Ref {UInt32} (0 )
106
105
zeDriverGetExtensionProperties (drv, count_ref, C_NULL )
107
106
108
107
all_props = Vector {ze_driver_extension_properties_t} (undef, count_ref[])
109
108
zeDriverGetExtensionProperties (drv, count_ref, all_props)
110
109
111
- return [(name= String ([props. name[1 : findfirst (isequal (0 ), props. name)- 1 ]. .. ]),
112
- version= Int (props. version),
113
- ) for props in all_props[1 : count_ref[]]]
110
+ extensions = Dict {String,VersionNumber} ()
111
+ for prop in all_props[1 : count_ref[]]
112
+ name = String (UInt8[prop. name[1 : findfirst (isequal (0 ), prop. name)- 1 ]. .. ])
113
+ version = unmake_version (prop. version)
114
+ extensions[name] = version
115
+ end
116
+ return extensions
114
117
end
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ api_version(drv)
20
20
21
21
properties (drv)
22
22
ipc_properties (drv)
23
- # extension_properties(drv)
23
+ extension_properties (drv)
24
24
25
25
end
26
26
You can’t perform that action at this time.
0 commit comments