Closed MatejMagat305 closed 1 year ago
@MatejMagat305 this is a wrong usage of the library. we should never instantiate a kernel or vector without the device. The entrypoint of VCL is to always get a device and create the entities from there.
This won't be supported since the proper usage is to always do
device.vector[Planet]()
Describe the feature
as I mension in isues https://github.com/vlang/v/issues/17401 I got some warning of code, so maybe it would be good add empty for types for delay init,
Use Case
it give error in future:
Proposed Solution
add options vcl.empty_......
Other Information
No response
Acknowledgements
Version used
V 0.3.3 b1ed1d3.acd9034
Environment details (OS name and version, etc.)
OS: linux, Pop!_OS 22.04 LTS Processor: 32 cpus, 64bit, little endian, AMD Ryzen 9 5950X 16-Core Processor CC version: cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
getwd: /home/matejmag/CLionProjects/own_struct_vcl vmodules: /home/matejmag/.vmodules vroot: /home/matejmag/v vexe: /home/matejmag/v/v vexe mtime: 2023-02-23 18:05:35 is vroot writable: true is vmodules writable: true V full version: V 0.3.3 b1ed1d3.acd9034
Git version: git version 2.34.1 Git vroot status: weekly.2023.08-14-gacd90348 .git/config present: true thirdparty/tcc status: thirdparty-linux-amd64 12f392c3