pmh47 / dirt

DIRT: a fast differentiable renderer for TensorFlow
MIT License
313 stars 63 forks source link

none of 3 egl devices matches the active cuda device #93

Open callmeray opened 3 years ago

callmeray commented 3 years ago

Thank you for opensourcing the great work. I've built and install dirt, but when I run python test/square_test.py, I got

WARNING:tensorflow:From tests/square_test.py:43: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

2021-01-23 12:44:58.104549: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2021-01-23 12:44:58.133546: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-23 12:44:58.134021: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties: 
name: GeForce RTX 2070 with Max-Q Design major: 7 minor: 5 memoryClockRate(GHz): 1.125
pciBusID: 0000:01:00.0
2021-01-23 12:44:58.134181: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0
2021-01-23 12:44:58.135298: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10.0
2021-01-23 12:44:58.136001: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10.0
2021-01-23 12:44:58.136142: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10.0
2021-01-23 12:44:58.137006: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10.0
2021-01-23 12:44:58.137686: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10.0
2021-01-23 12:44:58.139602: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2021-01-23 12:44:58.139664: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-23 12:44:58.140017: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-23 12:44:58.140482: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1746] Adding visible gpu devices: 0
2021-01-23 12:44:58.140675: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2021-01-23 12:44:58.144628: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2299965000 Hz
2021-01-23 12:44:58.145181: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55ae129483a0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2021-01-23 12:44:58.145215: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2021-01-23 12:44:58.203693: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-23 12:44:58.204092: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55ae11f22ed0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2021-01-23 12:44:58.204105: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): GeForce RTX 2070 with Max-Q Design, Compute Capability 7.5
2021-01-23 12:44:58.204206: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-23 12:44:58.204521: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties: 
name: GeForce RTX 2070 with Max-Q Design major: 7 minor: 5 memoryClockRate(GHz): 1.125
pciBusID: 0000:01:00.0
2021-01-23 12:44:58.204543: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0
2021-01-23 12:44:58.204550: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10.0
2021-01-23 12:44:58.204556: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10.0
2021-01-23 12:44:58.204563: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10.0
2021-01-23 12:44:58.204570: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10.0
2021-01-23 12:44:58.204577: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10.0
2021-01-23 12:44:58.204583: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2021-01-23 12:44:58.204609: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-23 12:44:58.204928: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-23 12:44:58.205229: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1746] Adding visible gpu devices: 0
2021-01-23 12:44:58.205248: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0
2021-01-23 12:44:58.205794: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1159] Device interconnect StreamExecutor with strength 1 edge matrix:
2021-01-23 12:44:58.205804: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1165]      0 
2021-01-23 12:44:58.205808: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1178] 0:   N 
2021-01-23 12:44:58.205862: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-23 12:44:58.206191: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-23 12:44:58.206507: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1304] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 7256 MB memory) -> physical GPU (device: 0, name: GeForce RTX 2070 with Max-Q Design, pci bus id: 0000:01:00.0, compute capability: 7.5)
2021-01-23 12:44:58.498990: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2021-01-23 12:44:58.500213: F /home/rayu/Projects/HOnnotate/dirt/csrc/gl_common.h:65] none of 3 egl devices matches the active cuda device
Aborted (core dumped)

I'm using conda to set the python environment

# packages in environment at /home/rayu/miniconda3/envs/hon:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
_tflow_select             2.1.0                       gpu    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
absl-py                   0.11.0             pyhd3eb1b0_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
astor                     0.8.1                    py37_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
blas                      1.0                         mkl    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
c-ares                    1.17.1               h27cfd23_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
ca-certificates           2021.1.19            h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
certifi                   2020.12.5        py37h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
cudatoolkit               10.0.130                      0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
cudnn                     7.6.5                cuda10.0_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
cupti                     10.0.130                      0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
dirt                      0.3.0                     dev_0    <develop>
gast                      0.2.2                    py37_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
google-pasta              0.2.0                      py_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
grpcio                    1.31.0           py37hf8bcb03_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
h5py                      2.10.0           py37hd6299e0_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
hdf5                      1.10.6               hb1b8bf9_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
importlib-metadata        2.0.0                      py_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
intel-openmp              2020.2                      254    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
keras-applications        1.0.8                      py_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
keras-preprocessing       1.1.0                      py_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
ld_impl_linux-64          2.33.1               h53a641e_7    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libedit                   3.1.20191231         h14c3975_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libffi                    3.3                  he6710b0_2    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libgcc-ng                 9.1.0                hdf63c60_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libgfortran-ng            7.3.0                hdf63c60_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libprotobuf               3.13.0.1             hd408876_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libstdcxx-ng              9.1.0                hdf63c60_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
markdown                  3.3.3            py37h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
mkl                       2020.2                      256    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
mkl-service               2.3.0            py37he8ac12f_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
mkl_fft                   1.2.0            py37h23d657b_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
mkl_random                1.1.1            py37h0573a6f_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
ncurses                   6.2                  he6710b0_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
numpy                     1.19.2           py37h54aff64_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
numpy-base                1.19.2           py37hfa32c7d_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
openssl                   1.1.1i               h27cfd23_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
opt_einsum                3.1.0                      py_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
pip                       20.3.3           py37h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
protobuf                  3.13.0.1         py37he6710b0_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
python                    3.7.9                h7579374_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
readline                  8.0                  h7b6447c_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
scipy                     1.5.2            py37h0b6359f_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
setuptools                51.3.3           py37h06a4308_4    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
six                       1.15.0           py37h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
sqlite                    3.33.0               h62c20be_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tensorboard               1.15.0             pyhb230dea_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tensorflow                1.15.0          gpu_py37h0f0df58_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tensorflow-base           1.15.0          gpu_py37h9dcbed7_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tensorflow-estimator      1.15.1             pyh2649769_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tensorflow-gpu            1.15.0                   pypi_0    pypi
termcolor                 1.1.0                    py37_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tk                        8.6.10               hbc83047_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
webencodings              0.5.1                    py37_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
werkzeug                  0.16.1                     py_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
wheel                     0.36.2             pyhd3eb1b0_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
wrapt                     1.12.1           py37h7b6447c_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
xz                        5.2.5                h7b6447c_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
zipp                      3.4.0              pyhd3eb1b0_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
zlib                      1.2.11               h7b6447c_3    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
callmeray commented 3 years ago

When I 'ldd dirt/librasterise.so`, I got

linux-vdso.so.1 (0x00007ffdfb1fd000)
    libOpenGL.so.0 => /usr/lib/x86_64-linux-gnu/libOpenGL.so.0 (0x00007f519f318000)
    libEGL.so.1 => /usr/lib/x86_64-linux-gnu/libEGL.so.1 (0x00007f519f104000)
    libtensorflow_framework.so.1 => not found
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f519eefc000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f519ecdd000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f519ead9000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f519e750000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f519e3b2000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f519e19a000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f519dda9000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f519f83e000)
    libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f519daf3000)
callmeray commented 3 years ago

Result of nvidia-smi -q

==============NVSMI LOG==============

Timestamp                                 : Sat Jan 23 12:47:12 2021
Driver Version                            : 450.102.04
CUDA Version                              : 11.0

Attached GPUs                             : 1
GPU 00000000:01:00.0
    Product Name                          : GeForce RTX 2070 with Max-Q Design
    Product Brand                         : GeForce
    Display Mode                          : Enabled
    Display Active                        : Enabled
    Persistence Mode                      : Disabled
    MIG Mode
        Current                           : N/A
        Pending                           : N/A
    Accounting Mode                       : Disabled
    Accounting Mode Buffer Size           : 4000
    Driver Model
        Current                           : N/A
        Pending                           : N/A
    Serial Number                         : N/A
    GPU UUID                              : GPU-439fa835-4f32-6cf4-8bdb-66d35b37a714
    Minor Number                          : 0
    VBIOS Version                         : 90.06.59.00.76
    MultiGPU Board                        : No
    Board ID                              : 0x100
    GPU Part Number                       : N/A
    Inforom Version
        Image Version                     : G001.0000.02.04
        OEM Object                        : 1.1
        ECC Object                        : N/A
        Power Management Object           : N/A
    GPU Operation Mode
        Current                           : N/A
        Pending                           : N/A
    GPU Virtualization Mode
        Virtualization Mode               : None
        Host VGPU Mode                    : N/A
    IBMNPU
        Relaxed Ordering Mode             : N/A
    PCI
        Bus                               : 0x01
        Device                            : 0x00
        Domain                            : 0x0000
        Device Id                         : 0x1F1410DE
        Bus Id                            : 00000000:01:00.0
        Sub System Id                     : 0x12C61462
        GPU Link Info
            PCIe Generation
                Max                       : 3
                Current                   : 1
            Link Width
                Max                       : 16x
                Current                   : 16x
        Bridge Chip
            Type                          : N/A
            Firmware                      : N/A
        Replays Since Reset               : 0
        Replay Number Rollovers           : 0
        Tx Throughput                     : 1388000 KB/s
        Rx Throughput                     : 4000 KB/s
    Fan Speed                             : N/A
    Performance State                     : P8
    Clocks Throttle Reasons
        Idle                              : Active
        Applications Clocks Setting       : Not Active
        SW Power Cap                      : Not Active
        HW Slowdown                       : Not Active
            HW Thermal Slowdown           : Not Active
            HW Power Brake Slowdown       : Not Active
        Sync Boost                        : Not Active
        SW Thermal Slowdown               : Not Active
        Display Clock Setting             : Not Active
    FB Memory Usage
        Total                             : 7982 MiB
        Used                              : 247 MiB
        Free                              : 7735 MiB
    BAR1 Memory Usage
        Total                             : 256 MiB
        Used                              : 4 MiB
        Free                              : 252 MiB
    Compute Mode                          : Default
    Utilization
        Gpu                               : 20 %
        Memory                            : 11 %
        Encoder                           : 0 %
        Decoder                           : 0 %
    Encoder Stats
        Active Sessions                   : 0
        Average FPS                       : 0
        Average Latency                   : 0
    FBC Stats
        Active Sessions                   : 0
        Average FPS                       : 0
        Average Latency                   : 0
    Ecc Mode
        Current                           : N/A
        Pending                           : N/A
    ECC Errors
        Volatile
            SRAM Correctable              : N/A
            SRAM Uncorrectable            : N/A
            DRAM Correctable              : N/A
            DRAM Uncorrectable            : N/A
        Aggregate
            SRAM Correctable              : N/A
            SRAM Uncorrectable            : N/A
            DRAM Correctable              : N/A
            DRAM Uncorrectable            : N/A
    Retired Pages
        Single Bit ECC                    : N/A
        Double Bit ECC                    : N/A
        Pending Page Blacklist            : N/A
    Remapped Rows                         : N/A
    Temperature
        GPU Current Temp                  : 48 C
        GPU Shutdown Temp                 : 98 C
        GPU Slowdown Temp                 : 93 C
        GPU Max Operating Temp            : 87 C
        Memory Current Temp               : N/A
        Memory Max Operating Temp         : N/A
    Power Readings
        Power Management                  : N/A
        Power Draw                        : 14.19 W
        Power Limit                       : N/A
        Default Power Limit               : N/A
        Enforced Power Limit              : N/A
        Min Power Limit                   : N/A
        Max Power Limit                   : N/A
    Clocks
        Graphics                          : 375 MHz
        SM                                : 375 MHz
        Memory                            : 405 MHz
        Video                             : 540 MHz
    Applications Clocks
        Graphics                          : N/A
        Memory                            : N/A
    Default Applications Clocks
        Graphics                          : N/A
        Memory                            : N/A
    Max Clocks
        Graphics                          : 2100 MHz
        SM                                : 2100 MHz
        Memory                            : 5501 MHz
        Video                             : 1950 MHz
    Max Customer Boost Clocks
        Graphics                          : N/A
    Clock Policy
        Auto Boost                        : N/A
        Auto Boost Default                : N/A
    Processes
        GPU instance ID                   : N/A
        Compute instance ID               : N/A
        Process ID                        : 2435
            Type                          : G
            Name                          : /usr/lib/xorg/Xorg
            Used GPU Memory               : 226 MiB
pmh47 commented 3 years ago

The particular error is with 'linking' the cuda and opengl contexts. It sometimes happens when a non-nvidia version of libEGL is found -- however your library paths look correct.

Could you paste the output of ls -l /usr/lib*/*/*GL*.

Also, patch DIRT source to give a bit more info on the error: add LOG(INFO) << "eglQueryDeviceAttribEXT returns " << to the beginning of L60 of csrc/gl_common.h, and LOG(INFO) << "eglGetError returns " << eglGetError(); between L60 and L61. Then, rebuild.

callmeray commented 3 years ago

The result of ls -l /usr/lib*/*/*GL*

-rwxr-xr-x 1 root root   12424 Jan 23 11:11 /usr/lib/nvidia/libGLX_installcheck.so.0
-rwxr-xr-x 1 root root  240464 Dec  2 02:30 /usr/lib/slack/libEGL.so
-rwxr-xr-x 1 root root 6814152 Dec  2 02:30 /usr/lib/slack/libGLESv2.so
lrwxrwxrwx 1 root root      20 Jan  6 03:36 /usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0 -> libEGL_mesa.so.0.0.0
-rw-r--r-- 1 root root  259448 Jun 12  2020 /usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0.0.0
lrwxrwxrwx 1 root root      15 May 10  2019 /usr/lib/x86_64-linux-gnu/libEGL.so -> libEGL.so.1.0.0
lrwxrwxrwx 1 root root      15 Jan 23 00:34 /usr/lib/x86_64-linux-gnu/libEGL.so.1 -> libEGL.so.1.0.0
-rw-r--r-- 1 root root   80448 May 10  2019 /usr/lib/x86_64-linux-gnu/libEGL.so.1.0.0
lrwxrwxrwx 1 root root      22 May 10  2019 /usr/lib/x86_64-linux-gnu/libGLdispatch.so -> libGLdispatch.so.0.0.0
lrwxrwxrwx 1 root root      22 Jan 23 00:34 /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 -> libGLdispatch.so.0.0.0
-rw-r--r-- 1 root root  612792 May 10  2019 /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0
lrwxrwxrwx 1 root root      21 May 10  2019 /usr/lib/x86_64-linux-gnu/libGLESv1_CM.so -> libGLESv1_CM.so.1.0.0
lrwxrwxrwx 1 root root      21 Jan 23 00:34 /usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.0.0
-rw-r--r-- 1 root root   43328 May 10  2019 /usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.1.0.0
lrwxrwxrwx 1 root root      18 May 10  2019 /usr/lib/x86_64-linux-gnu/libGLESv2.so -> libGLESv2.so.2.0.0
lrwxrwxrwx 1 root root      18 Jan 23 00:34 /usr/lib/x86_64-linux-gnu/libGLESv2.so.2 -> libGLESv2.so.2.0.0
-rw-r--r-- 1 root root   72000 May 10  2019 /usr/lib/x86_64-linux-gnu/libGLESv2.so.2.0.0
lrwxrwxrwx 1 root root      16 Aug 25  2017 /usr/lib/x86_64-linux-gnu/libGLEW.so -> libGLEW.so.2.0.0
lrwxrwxrwx 1 root root      16 Aug 25  2017 /usr/lib/x86_64-linux-gnu/libGLEW.so.2.0 -> libGLEW.so.2.0.0
-rw-r--r-- 1 root root  587816 Aug 25  2017 /usr/lib/x86_64-linux-gnu/libGLEW.so.2.0.0
lrwxrwxrwx 1 root root      14 May 10  2019 /usr/lib/x86_64-linux-gnu/libGL.so -> libGL.so.1.0.0
lrwxrwxrwx 1 root root      14 Jan 23 00:34 /usr/lib/x86_64-linux-gnu/libGL.so.1 -> libGL.so.1.0.0
-rw-r--r-- 1 root root  567624 May 10  2019 /usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
-rw-r--r-- 1 root root  926218 May 22  2016 /usr/lib/x86_64-linux-gnu/libGLU.a
lrwxrwxrwx 1 root root      15 May 22  2016 /usr/lib/x86_64-linux-gnu/libGLU.so -> libGLU.so.1.3.1
lrwxrwxrwx 1 root root      15 Jan  6 03:36 /usr/lib/x86_64-linux-gnu/libGLU.so.1 -> libGLU.so.1.3.1
-rw-r--r-- 1 root root  453352 May 22  2016 /usr/lib/x86_64-linux-gnu/libGLU.so.1.3.1
lrwxrwxrwx 1 root root      20 Jan  6 03:36 /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0 -> libGLX_mesa.so.0.0.0
-rw-r--r-- 1 root root  488312 Jun 12  2020 /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0
lrwxrwxrwx 1 root root      15 May 10  2019 /usr/lib/x86_64-linux-gnu/libGLX.so -> libGLX.so.0.0.0
lrwxrwxrwx 1 root root      15 Jan 23 00:34 /usr/lib/x86_64-linux-gnu/libGLX.so.0 -> libGLX.so.0.0.0
-rw-r--r-- 1 root root   68144 May 10  2019 /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0
lrwxrwxrwx 1 root root      18 May 10  2019 /usr/lib/x86_64-linux-gnu/libOpenGL.so -> libOpenGL.so.0.0.0
lrwxrwxrwx 1 root root      18 May 10  2019 /usr/lib/x86_64-linux-gnu/libOpenGL.so.0 -> libOpenGL.so.0.0.0
-rw-r--r-- 1 root root  186688 May 10  2019 /usr/lib/x86_64-linux-gnu/libOpenGL.so.0.0.0
-rw-r--r-- 1 root root 1031876 Feb  7  2020 /usr/lib/x86_64-linux-gnu/libQt5OpenGLExtensions.a
-rw-r--r-- 1 root root    1135 Feb  7  2020 /usr/lib/x86_64-linux-gnu/libQt5OpenGLExtensions.prl
-rw-r--r-- 1 root root    1151 Feb  7  2020 /usr/lib/x86_64-linux-gnu/libQt5OpenGL.prl
lrwxrwxrwx 1 root root      21 Feb  7  2020 /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so -> libQt5OpenGL.so.5.9.5
lrwxrwxrwx 1 root root      21 Feb  7  2020 /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5 -> libQt5OpenGL.so.5.9.5
lrwxrwxrwx 1 root root      21 Feb  7  2020 /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5.9 -> libQt5OpenGL.so.5.9.5
-rw-r--r-- 1 root root  353760 Feb  7  2020 /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5.9.5
lrwxrwxrwx 1 root root      35 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkGUISupportQtOpenGL-6.3.so -> libvtkGUISupportQtOpenGL-6.3.so.6.3
lrwxrwxrwx 1 root root      37 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkGUISupportQtOpenGL-6.3.so.6.3 -> libvtkGUISupportQtOpenGL-6.3.so.6.3.0
-rw-r--r-- 1 root root   85416 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkGUISupportQtOpenGL-6.3.so.6.3.0
lrwxrwxrwx 1 root root      39 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingContextOpenGL-6.3.so -> libvtkRenderingContextOpenGL-6.3.so.6.3
lrwxrwxrwx 1 root root      41 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingContextOpenGL-6.3.so.6.3 -> libvtkRenderingContextOpenGL-6.3.so.6.3.0
-rw-r--r-- 1 root root  200312 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingContextOpenGL-6.3.so.6.3.0
lrwxrwxrwx 1 root root      48 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingContextOpenGLPython27D-6.3.so -> libvtkRenderingContextOpenGLPython27D-6.3.so.6.3
lrwxrwxrwx 1 root root      50 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingContextOpenGLPython27D-6.3.so.6.3 -> libvtkRenderingContextOpenGLPython27D-6.3.so.6.3.0
-rw-r--r-- 1 root root   14840 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingContextOpenGLPython27D-6.3.so.6.3.0
lrwxrwxrwx 1 root root      42 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingContextOpenGLTCL-6.3.so -> libvtkRenderingContextOpenGLTCL-6.3.so.6.3
lrwxrwxrwx 1 root root      44 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingContextOpenGLTCL-6.3.so.6.3 -> libvtkRenderingContextOpenGLTCL-6.3.so.6.3.0
-rw-r--r-- 1 root root   14648 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingContextOpenGLTCL-6.3.so.6.3.0
lrwxrwxrwx 1 root root      31 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingGL2PS-6.3.so -> libvtkRenderingGL2PS-6.3.so.6.3
lrwxrwxrwx 1 root root      33 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingGL2PS-6.3.so.6.3 -> libvtkRenderingGL2PS-6.3.so.6.3.0
-rw-r--r-- 1 root root  113840 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingGL2PS-6.3.so.6.3.0
lrwxrwxrwx 1 root root      40 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingGL2PSPython27D-6.3.so -> libvtkRenderingGL2PSPython27D-6.3.so.6.3
lrwxrwxrwx 1 root root      42 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingGL2PSPython27D-6.3.so.6.3 -> libvtkRenderingGL2PSPython27D-6.3.so.6.3.0
-rw-r--r-- 1 root root   23264 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingGL2PSPython27D-6.3.so.6.3.0
lrwxrwxrwx 1 root root      35 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingGLtoPSTCL-6.3.so -> libvtkRenderingGLtoPSTCL-6.3.so.6.3
lrwxrwxrwx 1 root root      37 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingGLtoPSTCL-6.3.so.6.3 -> libvtkRenderingGLtoPSTCL-6.3.so.6.3.0
-rw-r--r-- 1 root root   18752 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingGLtoPSTCL-6.3.so.6.3.0
lrwxrwxrwx 1 root root      32 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGL-6.3.so -> libvtkRenderingOpenGL-6.3.so.6.3
lrwxrwxrwx 1 root root      34 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGL-6.3.so.6.3 -> libvtkRenderingOpenGL-6.3.so.6.3.0
-rw-r--r-- 1 root root 2734512 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGL-6.3.so.6.3.0
lrwxrwxrwx 1 root root      41 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGLPython27D-6.3.so -> libvtkRenderingOpenGLPython27D-6.3.so.6.3
lrwxrwxrwx 1 root root      43 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGLPython27D-6.3.so.6.3 -> libvtkRenderingOpenGLPython27D-6.3.so.6.3.0
-rw-r--r-- 1 root root 1005760 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGLPython27D-6.3.so.6.3.0
lrwxrwxrwx 1 root root      35 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGLTCL-6.3.so -> libvtkRenderingOpenGLTCL-6.3.so.6.3
lrwxrwxrwx 1 root root      37 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGLTCL-6.3.so.6.3 -> libvtkRenderingOpenGLTCL-6.3.so.6.3.0
-rw-r--r-- 1 root root  727128 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingOpenGLTCL-6.3.so.6.3.0
lrwxrwxrwx 1 root root      38 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingVolumeOpenGL-6.3.so -> libvtkRenderingVolumeOpenGL-6.3.so.6.3
lrwxrwxrwx 1 root root      40 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingVolumeOpenGL-6.3.so.6.3 -> libvtkRenderingVolumeOpenGL-6.3.so.6.3.0
-rw-r--r-- 1 root root  685800 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingVolumeOpenGL-6.3.so.6.3.0
lrwxrwxrwx 1 root root      47 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingVolumeOpenGLPython27D-6.3.so -> libvtkRenderingVolumeOpenGLPython27D-6.3.so.6.3
lrwxrwxrwx 1 root root      49 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingVolumeOpenGLPython27D-6.3.so.6.3 -> libvtkRenderingVolumeOpenGLPython27D-6.3.so.6.3.0
-rw-r--r-- 1 root root  129792 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingVolumeOpenGLPython27D-6.3.so.6.3.0
lrwxrwxrwx 1 root root      41 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingVolumeOpenGLTCL-6.3.so -> libvtkRenderingVolumeOpenGLTCL-6.3.so.6.3
lrwxrwxrwx 1 root root      43 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingVolumeOpenGLTCL-6.3.so.6.3 -> libvtkRenderingVolumeOpenGLTCL-6.3.so.6.3.0
-rw-r--r-- 1 root root   92944 Dec 18  2017 /usr/lib/x86_64-linux-gnu/libvtkRenderingVolumeOpenGLTCL-6.3.so.6.3.0
callmeray commented 3 years ago

The result of cmake ../csrc:

-- The CXX compiler identification is GNU 7.5.0
-- The CUDA compiler identification is NVIDIA 11.0.221
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so  found components:  OpenGL EGL 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rayu/Projects/HOnnotate/dirt/build

The result of make

Scanning dependencies of target rasterise
[ 42%] Building CUDA object CMakeFiles/rasterise.dir/rasterise_grad_egl.cu.o
[ 42%] Building CXX object CMakeFiles/rasterise.dir/shaders.cpp.o
[ 42%] Building CXX object CMakeFiles/rasterise.dir/rasterise_grad_egl.cpp.o
[ 57%] Building CXX object CMakeFiles/rasterise.dir/rasterise_egl.cpp.o
[ 71%] Building CUDA object CMakeFiles/rasterise.dir/rasterise_egl.cu.o
In file included from /home/rayu/Projects/HOnnotate/dirt/csrc/rasterise_grad_egl.cpp:22:0:
/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h:3:2: warning: #warning "Deprecated header file, please either include the main Eigen/CXX11/Tensor header or the respective TensorDeviceGpu.h file" [-Wcpp]
 #warning "Deprecated header file, please either include the main Eigen/CXX11/Tensor header or the respective TensorDeviceGpu.h file"
  ^~~~~~~
In file included from /home/rayu/Projects/HOnnotate/dirt/csrc/rasterise_egl.cpp:24:0:
/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h:3:2: warning: #warning "Deprecated header file, please either include the main Eigen/CXX11/Tensor header or the respective TensorDeviceGpu.h file" [-Wcpp]
 #warning "Deprecated header file, please either include the main Eigen/CXX11/Tensor header or the respective TensorDeviceGpu.h file"
  ^~~~~~~
/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/absl/strings/string_view.h(495): warning: expression has no effect

/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/absl/strings/string_view.h(495): warning: expression has no effect

/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/absl/types/optional.h(425): warning: expression has no effect
          detected during instantiation of "const T &absl::optional<T>::operator*() const & [with T=stream_executor::dnn::AlgorithmDesc]" 
/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/tensorflow/stream_executor/dnn.h(802): here

/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/absl/types/optional.h(425): warning: expression has no effect
          detected during:
            instantiation of "const T &absl::optional<T>::operator*() const & [with T=size_t]" 
(602): here
            instantiation of "auto absl::operator==(const absl::optional<T> &, const absl::optional<U> &)->__nv_bool [with T=size_t, U=size_t]" 
/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/tensorflow/stream_executor/dnn.h(856): here

/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/absl/types/optional.h(425): warning: expression has no effect
          detected during instantiation of "const T &absl::optional<T>::operator*() const & [with T=stream_executor::dnn::AlgorithmDesc]" 
/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/tensorflow/stream_executor/dnn.h(802): here

/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/absl/types/optional.h(425): warning: expression has no effect
          detected during:
            instantiation of "const T &absl::optional<T>::operator*() const & [with T=size_t]" 
(602): here
            instantiation of "auto absl::operator==(const absl::optional<T> &, const absl::optional<U> &)->__nv_bool [with T=size_t, U=size_t]" 
/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/tensorflow/stream_executor/dnn.h(856): here

/home/rayu/Projects/HOnnotate/dirt/csrc/rasterise_grad_egl.cpp: In lambda function:
/home/rayu/Projects/HOnnotate/dirt/csrc/rasterise_grad_egl.cpp:49:90: warning: ignoring return value of ‘tensorflow::Status tensorflow::shape_inference::InferenceContext::ReplaceDim(tensorflow::shape_inference::ShapeHandle, tensorflow::int64, tensorflow::shape_inference::DimensionHandle, tensorflow::shape_inference::ShapeHandle*)’, declared with attribute warn_unused_result [-Wunused-result]
         c->ReplaceDim(c->input(0), 2, c->Dim(c->input(2), 3), &grad_vertex_colours_shape);  // i.e. vertex-colors has same shape as vertices, but with final dimension replaced by channel count
                                                                                          ^
In file included from /home/rayu/Projects/HOnnotate/dirt/csrc/rasterise_grad_egl.cpp:13:0:
/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/tensorflow/core/framework/shape_inference.h:453:10: note: declared here
   Status ReplaceDim(ShapeHandle s, int64 dim_index, DimensionHandle new_dim,
          ^~~~~~~~~~
/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/absl/strings/string_view.h(495): warning: expression has no effect

/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/absl/strings/string_view.h(495): warning: expression has no effect

/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/absl/types/optional.h(425): warning: expression has no effect
          detected during instantiation of "const T &absl::optional<T>::operator*() const & [with T=stream_executor::dnn::AlgorithmDesc]" 
/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/tensorflow/stream_executor/dnn.h(802): here

/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/absl/types/optional.h(425): warning: expression has no effect
          detected during:
            instantiation of "const T &absl::optional<T>::operator*() const & [with T=size_t]" 
(602): here
            instantiation of "auto absl::operator==(const absl::optional<T> &, const absl::optional<U> &)->bool [with T=size_t, U=size_t]" 
/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/tensorflow/stream_executor/dnn.h(856): here

/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/absl/types/optional.h(425): warning: expression has no effect
          detected during instantiation of "const T &absl::optional<T>::operator*() const & [with T=stream_executor::dnn::AlgorithmDesc]" 
/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/tensorflow/stream_executor/dnn.h(802): here

/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/absl/types/optional.h(425): warning: expression has no effect
          detected during:
            instantiation of "const T &absl::optional<T>::operator*() const & [with T=size_t]" 
(602): here
            instantiation of "auto absl::operator==(const absl::optional<T> &, const absl::optional<U> &)->bool [with T=size_t, U=size_t]" 
/home/rayu/miniconda3/envs/hon/lib/python3.7/site-packages/tensorflow_core/include/tensorflow/stream_executor/dnn.h(856): here

[ 85%] Linking CUDA device code CMakeFiles/rasterise.dir/cmake_device_link.o
[100%] Linking CXX shared library /home/rayu/Projects/HOnnotate/dirt/dirt/librasterise.so
[100%] Built target rasterise
callmeray commented 3 years ago

The result of python tests/square_text.py

WARNING:tensorflow:From tests/square_test.py:43: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

2021-01-25 10:24:37.611545: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2021-01-25 10:24:37.647538: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-25 10:24:37.647878: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties: 
name: GeForce RTX 2070 with Max-Q Design major: 7 minor: 5 memoryClockRate(GHz): 1.125
pciBusID: 0000:01:00.0
2021-01-25 10:24:37.647993: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0
2021-01-25 10:24:37.649232: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10.0
2021-01-25 10:24:37.650302: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10.0
2021-01-25 10:24:37.650590: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10.0
2021-01-25 10:24:37.651721: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10.0
2021-01-25 10:24:37.652396: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10.0
2021-01-25 10:24:37.654578: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2021-01-25 10:24:37.654675: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-25 10:24:37.655156: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-25 10:24:37.655529: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1746] Adding visible gpu devices: 0
2021-01-25 10:24:37.655806: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2021-01-25 10:24:37.660740: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2299965000 Hz
2021-01-25 10:24:37.661165: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x555e86a8a040 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2021-01-25 10:24:37.661177: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2021-01-25 10:24:37.715581: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-25 10:24:37.716133: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x555e877f72b0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2021-01-25 10:24:37.716148: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): GeForce RTX 2070 with Max-Q Design, Compute Capability 7.5
2021-01-25 10:24:37.716307: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-25 10:24:37.716697: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties: 
name: GeForce RTX 2070 with Max-Q Design major: 7 minor: 5 memoryClockRate(GHz): 1.125
pciBusID: 0000:01:00.0
2021-01-25 10:24:37.716772: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0
2021-01-25 10:24:37.716784: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10.0
2021-01-25 10:24:37.716793: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10.0
2021-01-25 10:24:37.716803: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10.0
2021-01-25 10:24:37.716813: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10.0
2021-01-25 10:24:37.716822: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10.0
2021-01-25 10:24:37.716832: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2021-01-25 10:24:37.716864: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-25 10:24:37.717223: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-25 10:24:37.717678: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1746] Adding visible gpu devices: 0
2021-01-25 10:24:37.717727: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0
2021-01-25 10:24:37.718316: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1159] Device interconnect StreamExecutor with strength 1 edge matrix:
2021-01-25 10:24:37.718326: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1165]      0 
2021-01-25 10:24:37.718330: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1178] 0:   N 
2021-01-25 10:24:37.718427: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-25 10:24:37.718814: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2021-01-25 10:24:37.719203: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1304] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 7056 MB memory) -> physical GPU (device: 0, name: GeForce RTX 2070 with Max-Q Design, pci bus id: 0000:01:00.0, compute capability: 7.5)
2021-01-25 10:24:38.104559: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2021-01-25 10:24:38.106058: I /home/rayu/Projects/HOnnotate/dirt/csrc/gl_common.h:60] eglQueryDeviceAttribEXT returns 0
2021-01-25 10:24:38.106072: I /home/rayu/Projects/HOnnotate/dirt/csrc/gl_common.h:61] eglGetError returns 12292
2021-01-25 10:24:38.106078: I /home/rayu/Projects/HOnnotate/dirt/csrc/gl_common.h:60] eglQueryDeviceAttribEXT returns 0
2021-01-25 10:24:38.106082: I /home/rayu/Projects/HOnnotate/dirt/csrc/gl_common.h:61] eglGetError returns 12292
2021-01-25 10:24:38.106086: I /home/rayu/Projects/HOnnotate/dirt/csrc/gl_common.h:60] eglQueryDeviceAttribEXT returns 0
2021-01-25 10:24:38.106090: I /home/rayu/Projects/HOnnotate/dirt/csrc/gl_common.h:61] eglGetError returns 12292
2021-01-25 10:24:38.106094: F /home/rayu/Projects/HOnnotate/dirt/csrc/gl_common.h:66] none of 3 egl devices matches the active cuda device
Aborted (core dumped)
pmh47 commented 3 years ago

It looks like there's a problem with your nvidia driver's install of GL libraries. There should be a /usr/lib/x86_64-linux-gnu/libEGL_nvidia alongside the _mesa version. Did you install the nvidia driver using the nvidia runfile, or ubuntu's apt package? Uninstalling, then reinstalling with apt, is likely to fix it. Alternatively, it's possible that the nvidia version of libEGL has been placed somewhere unusual -- try searching the entire system for libEGL_nvidia*

callmeray commented 3 years ago

I installed the driver using the nvidia runfile. And there is no libEGL_nvidia* in my system. I'll try apt install later. Thanks again for your quick reply.