Skip to content

vcl: examples not working #226

@Eliyaan

Description

@Eliyaan

Describe the bug

vcl does not find devices

Expected Behavior

No crashes

Current Behavior

…/vsl/examples/vcl_opencl_basic 
> v run .
V panic: result not set (vcl_cl: Device Not Found)
v hash: 6cbffd5
/tmp/v_1000/vcl_opencl_basic.01JYYNV1YTVSVVQ01DJQ7YVH9T.tmp.c:7744: at _v_panic: Backtrace
/tmp/v_1000/vcl_opencl_basic.01JYYNV1YTVSVVQ01DJQ7YVH9T.tmp.c:7706: by panic_result_not_set
/tmp/v_1000/vcl_opencl_basic.01JYYNV1YTVSVVQ01DJQ7YVH9T.tmp.c:12418: by main__main
/tmp/v_1000/vcl_opencl_basic.01JYYNV1YTVSVVQ01DJQ7YVH9T.tmp.c:12609: by main

Reproduction Steps

…/vsl/examples/vcl_opencl_basic
> v run .

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.4.10

Version used

ran v install vsl to update it

Environment details (OS name and version, etc.)

|V full version      |V 0.4.11 6cbffd53ba3e36764de579e5e758bc7b962d0632
|:-------------------|:-------------------
|OS                  |linux, "Void Linux"
|Processor           |4 cpus, 64bit, little endian, Intel(R) Pentium(R) Gold 7505 @ 2.00GHz
|Memory              |1.59GB/7.45GB
|                    |
|V executable        |/home/nopana/v/v
|V last modified time|2025-06-29 20:25:01
|                    |
|V home dir          |OK, value: /home/nopana/v
|VMODULES            |OK, value: /home/nopana/.vmodules
|VTMP                |OK, value: /tmp/v_1000
|Current working dir |OK, value: /home/nopana/.vmodules/vsl/examples/vcl_opencl_basic
|                    |
|Git version         |git version 2.49.0
|V git status        |0.4.10-493-g6cbffd53
|.git/config present |true
|                    |
|cc version          |cc (GCC) 13.2.0
|gcc version         |gcc (GCC) 13.2.0
|clang version       |clang version 17.0.6
|tcc version         |tcc version 0.9.28rc 2025-02-13 HEAD@f8bd136d (x86_64 Linux)
|tcc git status      |thirdparty-linux-amd64 696c1d84
|emcc version        |N/A
|glibc version       |ldd (GNU libc) 2.41

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions