Passing environment variables to the servers

Comments

2 comments

  • Avatar
    Candido Dessanti

    Hi @CGorac,

    Welcome to our community; we hope you will enjoy it.

    We haven't any script that's doing the job right now, so you have to edit the database server's configuration file manually.

    We have a guide here on how to add the environment in case of trouble starting the server https://docs-new.omnisci.com/troubleshooting/vulkan-graphics-api-beta#troubleshooting

    I wrote that section of the docs, and probably, I should be clearer about the service that needs the configuration change; I am sorry about that.

    The variables are used from the initialization of systemd, so utilities like omnisql should ignore them.

    Are you sure you are using the Intel GPU for rendering od the mapd with MAPD? I guess to do that you should start the server with the render-prefere-igpu parameter turned on.

    The parameter is in beta so I'm not sure how is working, but I guess that is going to be slower than using the same GPU to execute the queries and render the data.

    Anyway I hope to hear from you soon, so Best Regards.

    Candido.

    0
    Comment actions Permalink
  • Avatar
    Crni Gorac

    Thanks for your reply. Indeed I've edited omnisci_server service configuration file to add:

    [Service]
    Environment="OMNISCI_USER=omnisci"
    Environment="OMNISCI_GROUP=omnisci"
    Environment="OMNISCI_STORAGE=/var/lib/omnisci"
    Environment="OMNISCI_PATH=/opt/omnisci"
    Environment="OMNISCI_LOG=/var/lib/omnisci/data/mapd_log"
    Environment="__NV_PRIME_RENDER_OFFLOAD=1"
    Environment="__GLX_VENDOR_LIBRARY_NAME=nvidia"
    Environment="VK_ICD_FILENAMES=/etc/vulkan/icd.d/nvidia_icd.json"
    

    and now it works fine.

    As far as GPU to be used for OmniSci rendering concerned, here I do want to use NVIDIA GPU for this (it's logical to use it as the database itself is handled by the same GPU), so it gets activated by the latest three env. variables set.

    Thanks.

    0
    Comment actions Permalink

Please sign in to leave a comment.