From 11612a24eea8f92b509c6bfb6e42ce7a6f55cea4 Mon Sep 17 00:00:00 2001 From: Evghenii Date: Thu, 20 Feb 2014 10:53:23 +0100 Subject: [PATCH] +added addition usage info --- examples_ptx/ptxtools/ptxcc.cpp | 2 +- examples_ptx/ptxtools/ptxgen.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples_ptx/ptxtools/ptxcc.cpp b/examples_ptx/ptxtools/ptxcc.cpp index f81b2bcf..dad7452d 100644 --- a/examples_ptx/ptxtools/ptxcc.cpp +++ b/examples_ptx/ptxtools/ptxcc.cpp @@ -79,7 +79,7 @@ static std::vector lSplitString(const std::string &s, char delim) static void lUsage(const int ret) { - fprintf(stdout, "\nusage: ptxcc\n"); + fprintf(stdout, "\nusage: ptxcc [options] file.ptx \n"); fprintf(stdout, " [--help]\t\t\t\t This help\n"); fprintf(stdout, " [--verbose]\t\t\t\t Be verbose\n"); fprintf(stdout, " [--arch={%s}]\t\t\t GPU target architecture\n", "sm_35"); diff --git a/examples_ptx/ptxtools/ptxgen.cpp b/examples_ptx/ptxtools/ptxgen.cpp index 24fbbe5c..a05124b6 100644 --- a/examples_ptx/ptxtools/ptxgen.cpp +++ b/examples_ptx/ptxtools/ptxgen.cpp @@ -260,7 +260,7 @@ static void showUsage() static void lUsage(const int ret) { - fprintf(stdout, "\nusage: ptxgen\n"); + fprintf(stdout, "\nusage: ptxgen [options] file.[ll,bc] \n"); fprintf(stdout, " [--help]\t\t This help\n"); fprintf(stdout, " [--verbose]\t\t Be verbose\n"); fprintf(stdout, " [--arch={%s}]\t GPU target architecture\n", "sm_35"); @@ -402,7 +402,7 @@ int main(int argc, char *argv[]) assert(outputPTX); const int ret = generatePTX(nvvmOptions, nvvmFiles, outputPTX, computeArch); - + outputPTX.open(filePTX.c_str()); return ret; }