[clblas] 47/67: fix linux build

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Oct 27 08:02:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository clblas.

commit 1ffeb0f59a849fc7f8dbde3d55cbac78d19efa46
Author: timmyliu <timmy.liu at amd.com>
Date:   Mon Oct 5 09:08:01 2015 -0500

    fix linux build
---
 src/library/tools/OCLBinaryGenerator/OCLBinaryGenerator.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/library/tools/OCLBinaryGenerator/OCLBinaryGenerator.cpp b/src/library/tools/OCLBinaryGenerator/OCLBinaryGenerator.cpp
index 3feea11..e3e33b3 100644
--- a/src/library/tools/OCLBinaryGenerator/OCLBinaryGenerator.cpp
+++ b/src/library/tools/OCLBinaryGenerator/OCLBinaryGenerator.cpp
@@ -233,7 +233,7 @@ int main(int argc, char *argv[])
 
     //get the input path
     std::string inputPath = argv[1];
-    inputPath += "\\";
+    inputPath += "/";
     std::cout << "OCLBinaryGenerator input path is " << inputPath <<std::endl;
 
     //get the input filename
@@ -243,7 +243,7 @@ int main(int argc, char *argv[])
     
     //get the path to destination
     std::string outputPath = argv[3];
-    outputPath += "\\";
+    outputPath += "/";
     std::cout << "OCLBinaryGenerator output path is " << outputPath << std::endl;
 
     //output filename
@@ -309,7 +309,7 @@ int main(int argc, char *argv[])
     size_t kernelBinarySize;
 
     
-    std::ifstream inputfile(inputPath+inputFilename);
+    std::ifstream inputfile((inputPath+inputFilename).c_str());
     if (!inputfile.is_open())
     {
         printf("Input file does not exist. OCLBinaryGenerator aborted.\n");
@@ -344,4 +344,4 @@ int main(int argc, char *argv[])
     //end writing file
     outputFile.close();
     printf("OCLBinaryGenerator finished.\n");
-}
\ No newline at end of file
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clblas.git



More information about the debian-science-commits mailing list