Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: LAPACK for GLSL?

  1. #1
    Intern Newbie
    Join Date
    May 2014
    Posts
    46

    LAPACK for GLSL?

    Is there any library that can carry out matrix operations like LAPACK and that is developed for GLSL use in an OpenGL program? Platform-specific is ok. Thanks.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    2,975
    Quote Originally Posted by zzzhhh View Post
    Is there any library that can carry out matrix operations like LAPACK and that is developed for GLSL use in an OpenGL program?
    Not that I know of. There are some complete BLAS implementations for OpenCL or for specific GPUs, but not so much for LAPACK, and nothing using GLSL (however, you can pass GPU-side data between GLSL and OpenCL).

  3. #3
    Intern Newbie
    Join Date
    May 2014
    Posts
    46
    Thanks.

    I'm not interested in OpenCL, so let's talk about CUDA. So a program can be written both as an OpenGL and CUDA, so that results calculated by CUDA LAPACK library can be transferred within GPU to GLSL? If so, can someone else please share a link to sample codes (a program of both OpenGL and CUDA and data transfer from CUDA to GLSL which takes place solely in GPU)? Thanks.

  4. #4
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    4,542
    The websearch terms you're looking for are: "cuda opengl interop example". This will turn up a number of hits. For NVidia samples, limit the search to nvidia.com.

    Sample hits:

    https://github.com/nvpro-samples/gl_...op_pingpong_st
    https://devtalk.nvidia.com/default/t...rn-gl-interop/
    https://docs.nvidia.com/cuda/cuda-sa...#simple-opengl
    https://docs.nvidia.com/cuda/cuda-ru...T__OPENGL.html

  5. #5
    Intern Newbie
    Join Date
    May 2014
    Posts
    46
    Thank you very much Dark Photon!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •