From 11c20c87fab2f55ced4a1c9cd3a3762be8e12017 Mon Sep 17 00:00:00 2001 From: Martin Danielsen Date: Thu, 9 Jan 2014 22:03:39 +0100 Subject: [PATCH] core: Warn if GPU_MAX_ALLOC_PERCENT or GPU_USE_SYNC_OBJECTS is not set ...through export (Linux) or setx (Windows). --- cgminer.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cgminer.c b/cgminer.c index df39b97e..095f5819 100644 --- a/cgminer.c +++ b/cgminer.c @@ -7713,6 +7713,13 @@ int main(int argc, char *argv[]) #endif } +#ifdef USE_SCRYPT // I don't really know if this is relevant for other mining platforms + if (!getenv("GPU_MAX_ALLOC_PERCENT")) + applog(LOG_WARNING, "WARNING: GPU_MAX_ALLOC_PERCENT is not specified!"); + if (!getenv("GPU_USE_SYNC_OBJECTS")) + applog(LOG_WARNING, "WARNING: GPU_USE_SYNC_OBJECTS is not specified!"); +#endif + if (!total_pools) { applog(LOG_WARNING, "Need to specify at least one pool server."); #ifdef HAVE_CURSES