Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect GLSL version error #8635

Open
raphaelBeekmeyer opened this issue Feb 12, 2025 · 0 comments
Open

incorrect GLSL version error #8635

raphaelBeekmeyer opened this issue Feb 12, 2025 · 0 comments

Comments

@raphaelBeekmeyer
Copy link

Describe the bug
Hello World program fails due to GLSL version incompatibility, even though my laptop has the correct version.

To Reproduce
This is just the Hello World example posted on the taichi website:

import taichi as ti
import taichi.math as tm
ti.init(arch=ti.gpu)
n = 320
pixels = ti.field(dtype=float, shape=(n * 2, n))
@ti.func
def complex_sqr(z):  # complex square of a 2D vector
    return tm.vec2(z[0] * z[0] - z[1] * z[1], 2 * z[0] * z[1])
@ti.kernel
def paint(t: float):
    for i, j in pixels:  # Parallelized over all pixels
        c = tm.vec2(-0.8, tm.cos(t) * 0.2)
        z = tm.vec2(i / n - 1, j / n - 0.5) * 2
        iterations = 0
        while z.norm() < 20 and iterations < 50:
            z = complex_sqr(z) + c
            iterations += 1
        pixels[i, j] = 1 - iterations * 0.02
gui = ti.GUI("Julia Set", res=(n * 2, n))
i = 0
while gui.running:
    paint(i * 0.03)
    gui.set_image(pixels)
    gui.show()
    i += 1

Log/Screenshots

[Taichi] version 1.7.3, llvm 15.0.1, commit 5ec301be, win, python 3.9.13
[W 02/12/25 17:46:51.188 1740] [cuda_driver.cpp:taichi::lang::CUDADriverBase::load_lib@36] nvcuda.dll lib not found.
[Taichi] Starting on arch=opengl
[E 02/12/25 17:46:52.168 1740] [opengl_device.cpp:taichi::lang::opengl::GLPipeline::GLPipeline@276] [glsl] error while compiling shader:
ERROR: 0:1: '' :  incorrect GLSL version: 450
WARNING: 0:3: 'GL_ARB_explicit_attrib_location' :  extension is not available in current GLSL version
WARNING: 0:3: 'local_size_x' : symbol not available in current GLSL version
WARNING: 0:3: 'local_size_y' : symbol not available in current GLSL version
WARNING: 0:3: 'local_size_z' : symbol not available in current GLSL version
WARNING: 0:5: 'GL_ARB_explicit_attrib_location' :  extension is not available in current GLSL version
WARNING: 0:5: 'binding' : symbol not available in current GLSL version
WARNING: 0:5: 'std140' : symbol not available in current GLSL version
WARNING: 0:10: 'GL_ARB_explicit_attrib_location' :  extension is not available in current GLSL version
WARNING: 0:10: 'binding' : symbol not available in current GLSL version
WARNING: 0:10: 'std430' : symbol not available in current GLSL version
WARNING: 0:10: 'buffer' : symbol not available in current GLSL version
WARNING: 0:12: 'uint' : symbol not available in current GLSL version
ERROR: 0:13: 'array without size' :  supported in geometry shaders only
WARNING: 0:? : 'gl_GlobalInvocationID' : variable is not available in current GLSL version
WARNING: 0:? : 'gl_NumWorkGroups' : variable is not available in current GLSL version
WARNING: 0:27: 'fma' : function is not available in current GLSL version
WARNING: 0:28: 'fma' : function is not available in current GLSL version
WARNING: 0:43: 'fma' : function is not available in current GLSL version
WARNING: 0:67: 'fma' : function is not available in current GLSL version
WARNING: 0:69: 'fma' : function is not available in current GLSL version
WARNING: 0:79: 'uint' : symbol not available in current GLSL version
WARNING: 0:79: '>>' : symbol not available in current GLSL version
WARNING: 0:80: 'fma' : function is not available in current GLSL version
WARNING: 0:80: 'floatBitsToUint' : function is not available in current GLSL version

Additional comments
My computer is using a Core GL version of 4.3, a Shading Language Version of 4.30 - Build 20.19.15.4531, and a Compatibility GL ES Version of 3.0 (not sure if that matters). The github page for taichi states that it is compatible with OpenGL 4.3+, so I'm not sure why it's giving an error involving 'incorrect GLSL version: 450'. I have an Intel HD Graphics 4400 integrated GPU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant