Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Groups
    • Search
    • 官网
    1. Home
    2. xuhui
    3. Best
    X
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by xuhui

    • RE: C++链接xMath出错

      之前代码中,我指定了xMath的路径寻找路径,从而导致了上述错误。正确的使用xMath应该让系统自己寻找合适的xMath库。

      经过超算中心老师的指导,我把提交程序修改为

      # prepare
      clear
      rm *.o
      rm test_xMath
      
      # compile master core program
      sw5cc -host -c cg.c
      sw5cc -host -c spmv.c
      sw5cc -host -c cg.c
      sw5cc -host -c SunwayAthread.c
      sw5CC -host -c main.cpp
      
      # link
      # xMath path should not be assigned, should automatically find by system
      mpic++ -hybrid -o test_xMath main.o cg.o spmv.o SunwayAthread.o -lxMath_manycore -lfortran -lffio
      
      # submit
      bsub -I -b -N 1 -q q_sw_expr -cgsp 64 ./test_xMath
      

      就可以解决问题。

      posted in 语言编译
      X
      xuhui
    • 1 / 1