diff --git "a/docs/\350\210\254\350\213\245\347\274\226\347\250\213\350\257\255\350\250\200\346\214\207\345\215\227.md" "b/docs/\350\210\254\350\213\245\347\274\226\347\250\213\350\257\255\350\250\200\346\214\207\345\215\227.md" index 1cb7e5c2..72f40abe 100644 --- "a/docs/\350\210\254\350\213\245\347\274\226\347\250\213\350\257\255\350\250\200\346\214\207\345\215\227.md" +++ "b/docs/\350\210\254\350\213\245\347\274\226\347\250\213\350\257\255\350\250\200\346\214\207\345\215\227.md" @@ -45,6 +45,13 @@ apt install git clang wget libgnutls28-dev libsodium-dev uuid-dev build-essentia Install CMake 2.30.0 参考: https://gist.github.com/bmegli/4049b7394f9cfa016c24ed67e5041930 ``` +#### Ubuntu 20.04 需要安装的一些依赖库 + +```bash +apt install git clang wget libgnutls28-dev libsodium-dev uuid-dev build-essential libssl-dev +Install CMake 2.30.0 参考: https://gist.github.com/bmegli/4049b7394f9cfa016c24ed67e5041930 +``` + #### 下载源码 首先我们下载源码, 下载的库会比较多, 如果没有报错请耐心等待, 建议配置网络代理以便能流畅下载github的代码 diff --git a/prajna/codegen/llvm_codegen.cpp b/prajna/codegen/llvm_codegen.cpp index 0afa0e4a..aea3c203 100644 --- a/prajna/codegen/llvm_codegen.cpp +++ b/prajna/codegen/llvm_codegen.cpp @@ -683,7 +683,7 @@ std::shared_ptr LlvmPass(std::shared_ptr ir_module) { JTMB->setCPU(""); JTMB->setRelocationModel(std::nullopt); JTMB->setCodeModel(std::nullopt); - JTMB->setCodeGenOptLevel(llvm::CodeGenOpt::None); + JTMB->setCodeGenOptLevel(llvm::CodeGenOptLevel::None); JTMB->addFeatures(std::vector()); auto TM = JTMB->createTargetMachine(); PRAJNA_ASSERT(TM && TM.get()); @@ -721,9 +721,12 @@ std::shared_ptr LlvmPass(std::shared_ptr ir_module) { llvm::SMDiagnostic err; #ifdef _WIN32 auto uq_llvm_libdevice_module = llvm::parseIRFile( - "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.2\\nvvm\\libdevice\\libdevice.10.bc", err, static_llvm_context); + "C:\\Program Files\\NVIDIA GPU Computing " + "Toolkit\\CUDA\\v12.2\\nvvm\\libdevice\\libdevice.10.bc", + err, static_llvm_context); PRAJNA_ASSERT(uq_llvm_libdevice_module, - "\"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.2\\nvvm\\libdevice\\libdevice.10.bc\" is not found"); + "\"C:\\Program Files\\NVIDIA GPU Computing " + "Toolkit\\CUDA\\v12.2\\nvvm\\libdevice\\libdevice.10.bc\" is not found"); #else auto uq_llvm_libdevice_module = llvm::parseIRFile( "/usr/local/cuda/nvvm/libdevice/libdevice.10.bc", err, static_llvm_context); diff --git a/third_party/boost b/third_party/boost index da041154..65c1319b 160000 --- a/third_party/boost +++ b/third_party/boost @@ -1 +1 @@ -Subproject commit da041154c6bac1a4aa98254a7d6819059e8ac0b0 +Subproject commit 65c1319bb92fe7a9a4abd588eff5818d9c2bccf9 diff --git a/third_party/llvm-project b/third_party/llvm-project index 76ea62a2..3b5b5c1e 160000 --- a/third_party/llvm-project +++ b/third_party/llvm-project @@ -1 +1 @@ -Subproject commit 76ea62a2735a760545bfa98524e7a658a15268ac +Subproject commit 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff