You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
Log/Screenshots
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.
The text was updated successfully, but these errors were encountered: