1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

core: check for GPU_* environment variables unconditionally.

This commit is contained in:
Noel Maersk 2014-01-28 02:51:42 +02:00
parent 17ef58b3d1
commit 108ac24e2a

View File

@ -7843,12 +7843,10 @@ int main(int argc, char *argv[])
#endif #endif
} }
#ifdef USE_SCRYPT // I don't really know if this is relevant for other mining platforms
if (!getenv("GPU_MAX_ALLOC_PERCENT")) if (!getenv("GPU_MAX_ALLOC_PERCENT"))
applog(LOG_WARNING, "WARNING: GPU_MAX_ALLOC_PERCENT is not specified!"); applog(LOG_WARNING, "WARNING: GPU_MAX_ALLOC_PERCENT is not specified!");
if (!getenv("GPU_USE_SYNC_OBJECTS")) if (!getenv("GPU_USE_SYNC_OBJECTS"))
applog(LOG_WARNING, "WARNING: GPU_USE_SYNC_OBJECTS is not specified!"); applog(LOG_WARNING, "WARNING: GPU_USE_SYNC_OBJECTS is not specified!");
#endif
if (!total_pools) { if (!total_pools) {
applog(LOG_WARNING, "Need to specify at least one pool server."); applog(LOG_WARNING, "Need to specify at least one pool server.");