What are you trying to accomplish with the GPU apps in the app_config?
The only time I'm aware of that GPU tasks need to be accounted for in app_config is when you are trying to run multiple GPU tasks at once on the same card. If you are trying to run a single task on a single card in a multi-card system then you need to exclude the other card(s) in cc_config.xml. Otherwise the default behaviour is to run one task at a time on a card.
In app_info.xml you do have to include all apps you want to run, but in app_config. you do not. Apps not included in app_config will still run based upon site and BOINC manager settings.
I'm not sure that line is needed either. If you have a 4 core/8 thread computer and you want to make sure you're using the cores then you can set the "Use at most X% of the CPUs" to 50%. That, combined with your <cmdline> and <avg_ncpus> will force one task at a time to be run.
Are you trying to run Primegrid and non-Primegrid tasks at the same time?
Badge Score: 2*1 + 4*2 + 6*1 + 7*10 + 8*2 + 10*3 + 11*1 = 143