当前位置: 首页 > article >正文

visual studio编译fortran

1、下载hpc-toolkithttps://www.intel.com/content/www/us/en/developer/tools/oneapi/hpc-toolkit-download.html

2、配置环境变量

检查ifx是否在环境变量中

3、


# FORTRAN code
enable_language(Fortran)

if(${CMAKE_Fortran_COMPILER} MATCHES "ifort.*")
    set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS} -fltconsistency")
    set(CMAKE_Fortran_FLAGS_DEBUG   "${CMAKE_Fortran_FLAGS} -fltconsistency")
endif()

set(SRC
    *.f
    
)

add_library(xxx STATIC 
            ${SRC}
)

4、build

cmake -S . -B build -G “Visual Studio 16 2019” -T “fortran=ifx”


http://www.kler.cn/a/585670.html

相关文章:

  • Springboot项目发送请求
  • 什么是提示词工程,有哪些开源项目
  • Android Studio执行Run操作报Couldn‘t terminate previous instance of app错误
  • (动态规划 区间dp/dfs 最长回文子序列)leetcode 516
  • MATLAB R2024b 安装教程
  • 深入理解 ALSA 声卡驱动:从理论到实践,解决嵌入式 Linux 声卡无声问题
  • 基于Asp.net的医院病历管理系统
  • 射频相关概念
  • MySQL | MySQL表的增删改查(CRUD)
  • 使用 Swiss Table 如何实现更快的 Go map
  • 大模型高效优化技术全景解析:微调、量化、剪枝、梯度裁剪与蒸馏
  • chmod用法
  • 基于Spring Boot的网上宠物店系统的设计与实现(LW+源码+讲解)
  • 网络安全就业形势
  • C#中多态性核心讲解
  • Linux练级宝典->任务管理和守护进程
  • FlinkCDC3.3 使用 Mysql 8.4 报错
  • LINUX下的tcp协议
  • 大数据技术之Spark优化
  • Prosys OPC UA Gateway:实现 OPC Classic 与 OPC UA 无缝连接