Coder Social home page Coder Social logo

accelerator_simulation's Introduction

加速器模拟

1.介绍

闲来无事把学到的加速器知识用代码写出来

2.环境

2.1 visual studio

2.2 mkl(高性能矩阵运算)

Image text

2.2.1 mkl单线程

mkl安装完成后,visual studio中会出现相关的选项,如下图选择单线程模式
Image text
然后在需要的地方#include "mkl.h"即可开始使用mkl库

2.2.2 mkl多线程(可选)

多线程的设置稍微麻烦一点

  1. 和上图一样的地方,但选择Parallel
    Image text
  2. 此时直接编译会报错,找不到libiomp5md.dll,因此需要将libiomp5md.dll加入visual studio的工作环境中
    在下图位置填写libiomp5md.dll所在的目录。记得写PATH=; 只写路径会报错
    Image text
    我的libiomp5md.dll位于D:\Program Files\intel\oneAPI\compiler\2021.3.0\windows\redist\ia32_win\compiler,你需要根据自己mkl的安装路径来调整
  3. 然后在需要的地方#include “mkl.h”即可开始使用mkl库

accelerator_simulation's People

Contributors

liargc avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.