We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e095774 commit b804fbeCopy full SHA for b804fbe
src/commons/GpuUtil.h
@@ -41,6 +41,10 @@ struct GPUSharedMemory {
41
42
static std::string getShmHash(const std::string& db) {
43
std::string dbpath = FileUtil::getRealPathFromSymLink(PrefilteringIndexReader::dbPathWithoutIndex(db));
44
+ char* visibleDevices = getenv("CUDA_VISIBLE_DEVICES");
45
+ if (visibleDevices) {
46
+ dbpath.append(visibleDevices);
47
+ }
48
size_t hash = Util::hash(dbpath.c_str(), dbpath.length());
49
return SSTR(hash);
50
}
0 commit comments