remove std::vector in favor of std::initializor_list in GPUTargets.h

This commit is contained in:
Evghenii Gaburov
2015-02-24 12:54:06 +01:00
parent b35b931e3b
commit f481a51f39
3 changed files with 5 additions and 5 deletions

View File

@@ -123,7 +123,7 @@ static void lUsage(const int ret)
fprintf(stdout, " [--arch=]\t\t\t GPU target architectures:\n");
fprintf(stdout, " \t\t\t\t ");
for (const auto& mode : GPUTargets::computeMode)
fprintf(stdout, "%s ", mode.c_str());
fprintf(stdout, "%s ", mode);
fprintf(stdout, "\n");
fprintf(stdout, " [-o <name>]\t\t\t Output file name\n");
fprintf(stdout, " [-Xnvcc=<arguments>]\t Arguments to pass through to \"nvcc\"\n");
@@ -137,7 +137,7 @@ int main(int _argc, char * _argv[])
char *argv[128];
lGetAllArgs(_argc, _argv, argc, argv);
std::string arch = GPUTargets::computeMode.front();
std::string arch = *GPUTargets::computeMode.begin();
std::string filePTX;
std::string fileOBJ;
std::string extString = ".ptx";