Navigation

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

    wmly10

    @wmly10

    0
    Reputation
    5
    Posts
    445
    Profile views
    0
    Followers
    2
    Following
    Joined Last Online

    wmly10 Follow

    Posts made by wmly10

    • c和Fortran异构混合编程问题

      全局数组我写到module里面 carr.f90

      master.f90引用这个全局数组,slave.c里面定义结构体为struct{}

      struct{}carr_;

      编译方式

      sw5f90 -host -c carr.f90 sw5cc -slave -c slave.c sw5f90 -hybrid -o main master.f90 slave.o carr.o

      但是再运行时候 我发现还是数组地址引用不正确。

      我用nm 看了下carr.o文件,发现C对应那一栏 名字是 .data.in.carr.in.carr_,所以我感觉像是结构体名字写的不合理。

      不知咋解决

      posted in 技术交流区
      W
      wmly10
    • c和Fortran异构混合编程问题

      全局数组我写到module里面 carr.f90

      master.f90引用这个全局数组,slave.c里面定义结构体为struct{}

      struct{}carr_;

      编译方式

      sw5f90 -host -c carr.f90
      sw5cc -slave -c slave.c
      sw5f90 -hybrid -o main master.f90 slave.o carr.o

      但是再运行时候 我发现还是数组地址引用不正确。

      我用nm 看了下carr.o文件,发现C对应那一栏 名字是 .data.in.carr.in.carr_,所以我感觉像是结构体名字写的不合理。

      不知咋解决

      posted in 技术交流区
      W
      wmly10
    • RE: 从核调试小工具 (2018-12-21更新)

      段工您好。您写这个是直接在bashrc里面设置下就可以使用了吗? 还是说我需要svn down下来再使用?

      posted in 并行环境
      W
      wmly10
    • 1 / 1