We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f37a77 commit 5f77a23Copy full SHA for 5f77a23
src/xinterpreter.cpp
@@ -68,21 +68,7 @@ void* createInterpreter(const Args &ExtraArgs = {}) {
68
)
69
!= ClangArgs.end())
70
{
71
- if (Cpp::LoadLibrary("libomp"))
72
- {
73
- return res;
74
- }
75
- std::string conda_prefix = std::getenv("CONDA_PREFIX");
76
-#if __APPLE__
77
-#define LIBRARY_PREFIX ".dylib"
78
-#else
79
-#define LIBRARY_PREFIX ".so"
80
-#endif
81
- std::string omp_lib_path = conda_prefix + "/lib/libomp" LIBRARY_PREFIX;
82
- if (!Cpp::LoadLibrary(omp_lib_path.c_str()))
83
84
- std::cerr << "Failed to load libomp (tried location: " << omp_lib_path << ")\n";
85
+ Cpp::LoadLibrary("libomp");
86
}
87
return res;
88
0 commit comments