v1.0.9
⭐️ Features
-
[beec086] Added
struct
support to OKLThere are still a few missing features when using
structs
, such as:-
typedef
-ing structstypedef struct { } foo;
-
Expanding
@attributes
on struct variablesstruct mat3 { int *values @dim(3, 3); } mat3 m; // Error since the parser right now doesn't "know" `values` is a @dim(3, 3) m.values(0, 0);
-
Access level modifiers are not supported at the moment
struct foo { private: ... }
-
-
[bf1dd16]
@restrict
expands to__restrict__
by default-
OpenCL mode overrides it to
restrict
-
Setting the property
options/restrict
overrides either of those two values. For example:-
disable
will make it so@restrict
is ignored -
Any other value will be used instead (e.g. setting it to
'__declspec(restrict)'
would be preferred in Windows)
-
-
-
[897f600] Defaults compiler flags to optimize compilation (e.g.
-O3
)
🐛 Bugs Fixed
- [e21962d] CPU wrapped memory was being freed by the
occa::memory
object