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

Run Error on Ubuntu 20.04 #33

Open
akinazuki opened this issue Aug 29, 2022 · 3 comments
Open

Run Error on Ubuntu 20.04 #33

akinazuki opened this issue Aug 29, 2022 · 3 comments

Comments

@akinazuki
Copy link

Ubuntu Version: Ubuntu 20.04 LTS x86_64
Kernel Version: Linux VM-0-11-ubuntu 5.4.0-121-generic #137-Ubuntu SMP Wed Jun 15 13:33:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
CPU Info: Intel(R) Xeon(R) Platinum 8255C CPU @ 2.50GHz
Graphic Card Info: NVIDIA Tesla T4
Graphic Card Driver Version: 515.65.01
RealCUGAN Version: 20220728

ubuntu@VM-0-11-ubuntu:~/chokora$ nvidia-smi
Tue Aug 30 01:46:36 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01    Driver Version: 515.65.01    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Tesla T4            On   | 00000000:00:08.0 Off |                  Off |
| N/A   31C    P8    14W /  70W |      7MiB / 16384MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1529      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+
ubuntu@VM-0-11-ubuntu:~/chokora$ file /tmp/56b65b554b2631564dea13b00]
/tmp/56b65b554b2631564dea13b00: PNG image data, 1580 x 1020, 8-bit/color RGBA, non-interlaced

ubuntu@VM-0-11-ubuntu:~/chokora$ ./bin/realcugan-ncnn-vulkan -i /tmp/56b65b554b2631564dea13b00 -o /tmp/r.png -s 2

vkEnumeratePhysicalDevices failed -3
double free or corruption (out)
Aborted (core dumped)
@akinazuki
Copy link
Author

after sudo apt install mesa-vulkan-drivers

ubuntu@VM-0-11-ubuntu:~/chokora$ ./bin/realcugan-ncnn-vulkan -i /tmp/56b65b554b2631564dea13b00 -o /tmp/r.png
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  queueC=0[1]  queueG=0[1]  queueT=0[1]
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  bugsbn1=0  bugbilz=0  bugcopc=0  bugihfa=0
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  fp16-p/s/a=1/1/0  int8-p/s/a=1/1/0
[0 llvmpipe (LLVM 12.0.0, 256 bits)]  subgroup=8  basic=1  vote=1  ballot=1  shuffle=0
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
Invalid bitcast
  %379 = bitcast i32 %378 to i16
LLVM ERROR: Broken function
Aborted (core dumped)

@akinazuki
Copy link
Author

https://github.com/lutris/docs/blob/master/InstallingDrivers.md#amd--intel

solved the error, but it's run so slow

ubuntu@VM-0-11-ubuntu:~/chokora$ time ./bin/realcugan-ncnn-vulkan -i /tmp/66a0421e6717b3f47724c5000 -o /tmp/r.png
[0 llvmpipe (LLVM 14.0.6, 256 bits)]  queueC=0[1]  queueG=0[1]  queueT=0[1]
[0 llvmpipe (LLVM 14.0.6, 256 bits)]  bugsbn1=0  bugbilz=91  bugcopc=0  bugihfa=0
[0 llvmpipe (LLVM 14.0.6, 256 bits)]  fp16-p/s/a=1/1/1  int8-p/s/a=1/1/1
[0 llvmpipe (LLVM 14.0.6, 256 bits)]  subgroup=8  basic=1  vote=1  ballot=1  shuffle=1
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.

real    2m36.009s
user    19m55.808s
sys     0m2.181s
ubuntu@VM-0-11-ubuntu:~/chokora$ file /tmp/66a0421e6717b3f47724c5000
/tmp/66a0421e6717b3f47724c5000: PNG image data, 1580 x 1020, 8-bit/color RGBA, non-interlaced
ubuntu@VM-0-11-ubuntu:~/chokora$ file /tmp/r.png 
/tmp/r.png: PNG image data, 3160 x 2040, 8-bit/color RGBA, non-interlaced

@styler00dollar
Copy link

llvmpipe refers to cpu, that's why it is slow.

ArchieMeng added a commit to ArchieMeng/realcugan-ncnn-vulkan that referenced this issue Sep 16, 2022
Signed-off-by: ArchieMeng <archiemeng@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants