This commit is contained in:
Philippe Tillet
2015-02-01 15:58:05 -05:00
parent b0bf235cc2
commit 3f1fa822f8
6 changed files with 10 additions and 9 deletions

View File

@@ -256,8 +256,8 @@ model_map_t init_models(cl::CommandQueue & queue)
res[std::make_pair(MATRIX_PRODUCT_NT_TYPE, DTYPE)] = ptr_t(new model(mproduct_nt(1, 8, 8, 8, 4, 1, 4, FETCH_FROM_LOCAL, FETCH_FROM_LOCAL, 8, 8), queue));
res[std::make_pair(MATRIX_PRODUCT_TT_TYPE, DTYPE)] = ptr_t(new model(mproduct_tt(1, 8, 8, 8, 4, 1, 4, FETCH_FROM_LOCAL, FETCH_FROM_LOCAL, 8, 8), queue));
}
if(const char * cmodel_file = std::getenv("ATIDLAS_MODEL_DEVICE_0"))
import(std::string(cmodel_file), queue, res);
if(const char * homepath = std::getenv("HOME"))
import(std::string(homepath) + "/.atidlas/devices/device0.json", queue, res);
return res;
}