How to enable php run python script on GPU? -
in php website, call python script using theano , running on gpu.
however, when calling python script php, seems apache doesn't have permissions on gpu program falls on cpu, far less efficient compared gpu.
how can grant apache rights run programs on gpu?
i split up, save requirement event in storage (redis example or rabbitmq) , listen daemonized script (cron bad joice since hard make run more every minute). script update storage entry results , can access again in http stack. can implement functionallity via ajax or utilize usleep command in php wait results. if using while loop, dont forget break after 1 second or something, request not running long.
your problem might configured user, executes php binary - maybe not permitted access binaries on system. typically www-data user. adding www-data user necessary group, might able solve without splitting up. have @ binary's ownerships , permissions figure out.
Comments
Post a Comment