Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
- Stack dump:
- 0. Program arguments: /opt/rocm-5.4.2/llvm/bin/clang-15 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -emit-obj --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name ggml-cuda.cu -mrelocation-model pic -pic-level 1 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -fvisibility hidden -fapply-global-visibility-to-externs -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_isa_version_1101.bc -mlink-builtin-bitcode /opt/rocm/amdgcn/bitcode/oclc_abi_version_400.bc -target-cpu gfx1101 -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -resource-dir /opt/rocm-5.4.2/llvm/lib/clang/15.0.0 -dependency-file CMakeFiles/ggml-rocm.dir/ggml-cuda.cu.o.d -MT CMakeFiles/ggml-rocm.dir/ggml-cuda.cu.o -sys-header-deps -internal-isystem /opt/rocm-5.4.2/llvm/lib/clang/15.0.0/include/cuda_wrappers -idirafter /opt/rocm/include -include __clang_hip_runtime_wrapper.h -isystem /opt/rocm-5.4.2/include -isystem /opt/rocm-5.4.2/llvm/lib/clang/15.0.0/include/.. -isystem /opt/rocm/include -D GGML_CUDA_DMMV_X=32 -D GGML_CUDA_MMV_Y=1 -D GGML_USE_CUBLAS -D GGML_USE_HIPBLAS -D GGML_USE_K_QUANTS -D K_QUANTS_PER_ITERATION=2 -D _GNU_SOURCE -D _XOPEN_SOURCE=600 -D __HIP_PLATFORM_AMD__=1 -D __HIP_PLATFORM_HCC__=1 -D NDEBUG -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /opt/rocm-5.4.2/llvm/lib/clang/15.0.0/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/rocm-5.4.2/llvm/lib/clang/15.0.0/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -std=gnu++11 -fdeprecated-macro -fno-autolink -fdebug-compilation-dir=/mnt/lin2/type7/Programming/ml/ollama/llm/llama.cpp/gguf/build/rocm -ferror-limit 19 -fhip-new-launch-api -fgnuc-version=4.2.1 -no-opaque-pointers -fcxx-exceptions -fexceptions -fcolor-diagnostics -vectorize-loops -vectorize-slp -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false -cuid=bc2233cf88728757 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/ggml-cuda-588586/ggml-cuda-gfx1101.o -x hip /home/type7/Programming/ml/ollama/llm/llama.cpp/gguf/ggml-cuda.cu
- 1. <eof> parser at end of file
- 2. Code generation
- 3. Running pass 'CallGraph Pass Manager' on module '/home/type7/Programming/ml/ollama/llm/llama.cpp/gguf/ggml-cuda.cu'.
- 4. Running pass 'Branch Probability Basic Block Placement' on function '@_ZL12mul_mat_q5_0ILb0EEvPKvS1_Pfiiiii'
- #0 0x000055d4b7a2a405 PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
- #1 0x000055d4b7a27b54 SignalHandler(int) Signals.cpp:0:0
- #2 0x00007f6161716520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
- #3 0x000055d4b629ef09 llvm::SIInstrInfo::getInstSizeInBytes(llvm::MachineInstr const&) const (/opt/rocm-5.4.2/llvm/bin/clang-15+0xf0ff09)
- #4 0x000055d4b62f5ebd llvm::SITargetLowering::getPrefLoopAlignment(llvm::MachineLoop*) const (/opt/rocm-5.4.2/llvm/bin/clang-15+0xf66ebd)
- #5 0x000055d4b6fe1b2e (anonymous namespace)::MachineBlockPlacement::runOnMachineFunction(llvm::MachineFunction&) (.part.0) MachineBlockPlacement.cpp:0:0
- #6 0x000055d4b6d3d608 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
- #7 0x000055d4b7205600 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/rocm-5.4.2/llvm/bin/clang-15+0x1e76600)
- #8 0x000055d4b69eb78a (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) CallGraphSCCPass.cpp:0:0
- #9 0x000055d4b7206174 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/rocm-5.4.2/llvm/bin/clang-15+0x1e77174)
- #10 0x000055d4b7daecd5 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>) (/opt/rocm-5.4.2/llvm/bin/clang-15+0x2a1fcd5)
- #11 0x000055d4b8bc3bad clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/rocm-5.4.2/llvm/bin/clang-15+0x3834bad)
- #12 0x000055d4b9759929 clang::ParseAST(clang::Sema&, bool, bool) (/opt/rocm-5.4.2/llvm/bin/clang-15+0x43ca929)
- #13 0x000055d4b8511dd9 clang::FrontendAction::Execute() (/opt/rocm-5.4.2/llvm/bin/clang-15+0x3182dd9)
- #14 0x000055d4b849f221 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/rocm-5.4.2/llvm/bin/clang-15+0x3110221)
- #15 0x000055d4b85cd170 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/rocm-5.4.2/llvm/bin/clang-15+0x323e170)
- #16 0x000055d4b61a10a5 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/rocm-5.4.2/llvm/bin/clang-15+0xe120a5)
- #17 0x000055d4b619a58c ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0
- #18 0x000055d4b619cd50 clang_main(int, char**) (/opt/rocm-5.4.2/llvm/bin/clang-15+0xe0dd50)
- #19 0x00007f61616fdd90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
- #20 0x00007f61616fde40 call_init ./csu/../csu/libc-start.c:128:20
- #21 0x00007f61616fde40 __libc_start_main ./csu/../csu/libc-start.c:379:5
- #22 0x000055d4b6199a45 _start (/opt/rocm-5.4.2/llvm/bin/clang-15+0xe0aa45)
- clang-15: error: unable to execute command: Segmentation fault (core dumped)
- clang-15: error: clang frontend command failed due to signal (use -v to see invocation)
- AMD clang version 15.0.0 (https://github.com/RadeonOpenCompute/llvm-project roc-5.4.2 22506 5cddd31fe35b165caadc4409b1d79d0d377c89be)
- Target: x86_64-unknown-linux-gnu
- Thread model: posix
- InstalledDir: /opt/rocm/llvm/bin
- clang-15: note: diagnostic msg: Error generating preprocessed source(s).
- gmake[3]: *** [CMakeFiles/ggml-rocm.dir/build.make:76: CMakeFiles/ggml-rocm.dir/ggml-cuda.cu.o] Error 1
- gmake[2]: *** [CMakeFiles/Makefile2:650: CMakeFiles/ggml-rocm.dir/all] Error 2
- gmake[1]: *** [CMakeFiles/Makefile2:2488: examples/server/CMakeFiles/server.dir/rule] Error 2
- gmake: *** [Makefile:1050: server] Error 2
- llm/llama.cpp/generate_linux_rocm.go:24: running "cmake": exit status 2
Advertisement
Add Comment
Please, Sign In to add comment