From b0d9c50e743d0b53116f01bbcd64d9f1988e60c4 Mon Sep 17 00:00:00 2001 From: Arsene Perard-Gayot Date: Mon, 26 Jun 2017 13:27:26 +0200 Subject: [PATCH] Bug fix in PTX loading --- src/cuda_platform.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cuda_platform.cpp b/src/cuda_platform.cpp index 77fbd0df2..770635937 100644 --- a/src/cuda_platform.cpp +++ b/src/cuda_platform.cpp @@ -328,10 +328,9 @@ CUfunction CudaPlatform::load_kernel(DeviceId dev, const std::string& file, cons } std::string CudaPlatform::load_ptx(const std::string& filename) const { - std::string ptx_filename = filename + ".ptx"; - std::ifstream src_file(ptx_filename); + std::ifstream src_file(filename); if (!src_file.is_open()) - error("Can't open PTX source file '%'", ptx_filename); + error("Can't open PTX source file '%'", filename); return std::string(std::istreambuf_iterator(src_file), (std::istreambuf_iterator())); }