Commit 20336a67 authored by cianciosa's avatar cianciosa
Browse files

Correct command line arguments by removing space. This fixed jit test failure with gcc.

parent 664eca2e
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -188,7 +188,7 @@ namespace gpu {
            if (error) {
                std::cerr << "Failed to compile cpu kernel. Check source code in "
                          << filename << std::endl;
                exit(error);
                exit(-1);
            }

#ifdef NDEBUG
@@ -204,7 +204,7 @@ namespace gpu {
            auto jit_try = llvm::orc::LLJITBuilder().create();
            if (auto jiterror = jit_try.takeError()) {
                std::cerr << "Failed to build JIT : " << toString(std::move(jiterror)) << std::endl;
                exit(1);
                exit(-1);
            }
            jit = std::move(jit_try.get());

@@ -218,7 +218,7 @@ namespace gpu {
            waitpid(pid, &error, 0);
            if (error) {
                std::cerr << "Failed to remove " << filename << std::endl;
                exit(error);
                exit(-1);
            }
#endif
        }
@@ -403,7 +403,7 @@ namespace gpu {
            source_buffer << std::endl;
            source_buffer << "extern \"C\" void " << name << "(" << std::endl;
            
            source_buffer << "    std::map<size_t, ";
            source_buffer << "    map<size_t, ";
            jit::add_type<T> (source_buffer);
            source_buffer << " *> &args) {" << std::endl;

+2 −2

File changed.

Contains only whitespace changes.