CUDA is no longer compulsory
This commit is contained in:
@@ -4,10 +4,13 @@
|
||||
#include "IndexerWrapper.h"
|
||||
|
||||
void IndexerWrapper::Setup(const UnitCell &cell) {
|
||||
#ifdef JFJOCH_USE_CUDA
|
||||
indexer.iCellM() = CrystalLattice(cell).GetEigenMatrix();
|
||||
#endif
|
||||
}
|
||||
|
||||
std::vector<CrystalLattice> IndexerWrapper::Run(const std::vector<Coord> &coord) {
|
||||
#ifdef JFJOCH_USE_CUDA
|
||||
std::vector<CrystalLattice> ret;
|
||||
|
||||
if (coord.size() < MIN_SPOTS_TO_INDEX)
|
||||
@@ -32,4 +35,7 @@ std::vector<CrystalLattice> IndexerWrapper::Run(const std::vector<Coord> &coord)
|
||||
ret.emplace_back(indexer.oCell(id));
|
||||
|
||||
return ret;
|
||||
#else
|
||||
return {};
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user