Start mapd error C5208


#1

when i start mapd, and check by systemctl status mapd_server, it shows
madpsvr mapd_server[11750]: 0(261) : error C5208: Sampler needs to be a uniform (global or parameter to main), need to inline function or resolve conditional expression

what’s the problem?


#2

Hi @giverking -

Please limit your posting to either GitHub or the Community board; the same group of people get messages from both locations.

Can you provide more detail about your environment? Are you using OmniSci Cloud or a local install? If this is a local install, is this your first time running OmniSci or are you running into this error after using OmniSci previously? Please provide as much detail as you can, so that we can help you as best as we can.

Best,
Randy


#3

I use mapd a local install . it is first time running mapd…
My enviroment is CentOS7, cuda7, nvdia C2050, the nvidia-smi
[root@madpsvr mapd]# nvidia-smi
Tue Dec 11 17:19:56 2018
±----------------------------------------------------------------------------+
| NVIDIA-SMI 390.46 Driver Version: 390.46 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla C2050 Off | 00000000:01:00.0 Off | Off |
| 35% 84C P0 N/A / N/A | 62MiB / 3005MiB | 0% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 11750 C+G /opt/mapd/bin/mapd_server 50MiB |
±----------------------------------------------------------------------------+

i think it is fit the requirement.
systemctl status mapd_server, it returns:
● mapd_server.service - MapD database server
Loaded: loaded (/usr/lib/systemd/system/mapd_server.service; enabled; vendor preset: disabled)
Active: active (running) since 二 2018-12-11 16:55:21 CST; 7min ago
Main PID: 11750 (mapd_server)
CGroup: /system.slice/mapd_server.service
├─11750 /opt/mapd/bin/mapd_server --config /var/lib/mapd/mapd.conf
└─11763 -Xmx1024m -DMAPD_LOG_DIR=/var/lib/mapd/data -jar /opt/mapd/bin/calcite-1.0-SNAPSHOT-jar-with-dependencies.jar -e /opt/mapd/QueryEngine/ -d /var/lib/mapd/data -p 9093 -m 9091 -T -P

12月 11 16:55:22 madpsvr mapd_server[11750]: 0(261) : error C5208: Sampler needs to be a uniform (global or parameter to main), need to inline function or resolve conditional expression
12月 11 16:55:22 madpsvr mapd_server[11750]: 0(270) : error C5208: Sampler needs to be a uniform (global or parameter to main), need to inline function or resolve conditional expression
12月 11 16:55:22 madpsvr mapd_server[11750]: 0(275) : error C5208: Sampler needs to be a uniform (global or parameter to main), need to inline function or resolve conditional expression
12月 11 16:55:22 madpsvr mapd_server[11750]: 0(157) : error C5208: Sampler needs to be a uniform (global or parameter to main), need to inline function or resolve conditional expression
12月 11 16:55:22 madpsvr mapd_server[11750]: 0(160) : error C5208: Sampler needs to be a uniform (global or parameter to main), need to inline function or resolve conditional expression
12月 11 16:55:22 madpsvr mapd_server[11750]: 0(163) : error C5208: Sampler needs to be a uniform (global or parameter to main), need to inline function or resolve conditional expression
12月 11 16:55:22 madpsvr mapd_server[11750]: 0(189) : error C5208: Sampler needs to be a uniform (global or parameter to main), need to inline function or resolve conditional expression
12月 11 16:55:22 madpsvr mapd_server[11750]: 0(190) : error C5208: Sampler needs to be a uniform (global or parameter to main), need to inline function or resolve conditional expression
12月 11 16:55:22 madpsvr mapd_server[11750]: 0(197) : error C5208: Sampler needs to be a uniform (global or parameter to main), need to inline function or resolve conditional expression
12月 11 16:55:22 madpsvr mapd_server[11750]: 0(198) : error C5208: Sampler needs to be a uniform (global or parameter to main), need to inline function or resolve conditional expression


#4

the mapd_server.ERROR

MapDHandler.cpp:237] Backend rendering disabled: /home/jenkins-slave/workspace/mapd2-multi/compiler/gcc/gpu/cuda/host/centos/render/render/GfxDriver/Drivers/GL/Resources/GLShader.cpp:149 Error linking the shader: Fragment info


#5

Hi @giverking,

your graphic cards aren’t going to work with mapd because are based on Fermi architure. The executables are compiled with sm 3.2 that’s supported from Kepler arch.

Said that the version of Cuda required is 8, so you should upgrade.
You can try to start the server in cpu mode (or better install the Cpu version of software) modifying the mapd.conf file, usually located on /var/lib/mapd, adding the parameter cpu=true


#6

as i say above has some little error. i have installed cuda 9.1, not cuda 7.
nvdia-smi show NVIDIA-SMI 390.46 Driver Version: 390.46


#7

This issue looks related to your graphic card to me (open gl?) Have you tried to run the server in cpu mode?

As you can read in this post is likely that system will crash if you try to run queries in GPU mode.


#8

I have try to run the server In cpu mode, it is OK!
but i want to run it in GPU mode !


#9

I’m sorry @giverking,

but as I said before the code is compiled with sm_32 that’s not supported by the uArch of Fermi Hardware; it would be possible to recompile with sm_30, but I never tried, and I haven’t a Fermi card to test.

The backend rendering isn’t going to work, because it’s unavailable on core edition.

You can try the gpu mode soigning for a 14 free trial of Omnisci Cloud

It’s not the full experience, because you are limited to the graphical interface only, but you will get an idea about the performance of the software in GPU mode.

Anyway, if you need help, I can guide you to get the best performance in CPU mode


#10

With the release of API access for OmniSci Cloud, the only thing that OmniSci Cloud doesn’t provide is mapdql, which I’d argue isn’t really part of the core experience anyway.


#11

Hi @randyzwitch,

with the full experience, I mean experiencing with different parameters on the core database, using the full stack of commands


#12

i have changed a new graphics card , i works, thank u very much!