Linux programming and kernel information-general Linux technology-about how to configure the fortran environment in Linux. I am a beginner of linux, and I just got started with fortran. I cannot solve any small problem. Thank you for your help.
The downloaded intel linux compiler for linux 10 has been installed. Modify. bash_file according to some instructions on the Internet as follows:
#. Bash_profile
Cuda Memory Model:
GPU chip: Register, shared memory;
Onboard memory: local memory, constant memory, texture memory, texture memory, global memory;
Host memory: host memory, pinned memory.
Register: extremely low access latency;
Basic Unit: register file (32bit/each)
Computing power 1.0/1.1 hardware: 8192/Sm;
Computing power 1.2/1.3 hardware: 16384/Sm;
The register occupied by each thread is limited. Do not assign too many private variables to it dur
When my first FORTRAN program "Hello World" was born, my next goal was to write a program that contains function calls. What code formats and data types are there, the syntax and so on are all browsed in a short time. Since the speed is required, the details can only be skipped and can be supplemented in the future.
Create a FORTRAN-console application project in Vs and select the default emptyproject te
1, based on VC + + WIN32+CUDA+OPENGL combination of remote sensing image displayIn this combination scenario, OpenGL is set to the following two ways when initialized, with the same effect// setting mode 1glutinitdisplaymode (glut_double | GLUT_RGBA); // setting Mode 2glutinitdisplaymode (glut_double | GLUT_RGB);Extracting the pixel data from the remote sensing image data, the R, G, and b three channels can be assigned to the pixel buffer objects (pb
CUDA 5, CUDAGPU Architecture
SM (Streaming Multiprocessors) is a very important part of the GPU architecture. The concurrency of GPU hardware is determined by SM.
Taking the Fermi architecture as an example, it includes the following main components:
CUDA cores
Shared Memory/L1Cache
Register File
Load/Store Units
Special Function Units
Warp Scheduler
Each SM in the GPU is designed to support hundred
Use Python to write the CUDA program, and use python to write the cuda Program
There are two ways to write a CUDA program using Python:
* Numba* PyCUDA
Numbapro is no longer recommended. It is split and integrated into accelerate and Numba.
Example
Numba
Numba optimizes Python code through the JIT mechanism. Numba can optimize the hardware environment of the Loca
Previously, I thought the debugging functionality provided by GDB-Fortran program is quite limited due to experiences Of a couple of failed attempts to print allocatable arrays. However, having given several another tries today, I discovered the GDB does support printing values of allocatable array s, although it may be a little inconvenient. Now, let's see the details:We have the test code as follows, in which a derived type cmp, an allocatable array
This article introduces how to call the fortran code in Python. It mainly uses the f2py program, which is very practical. If you need it, you can refer to calling the fortran code in python, f2py is used. Its project home page is here. Now the project has been merged into numpy. Install python and then install numpy to use f2py. However, for windows, you must use the gnu
Create a Fortran compiling environment in Linux-general Linux technology-Linux programming and kernel information. For more information, see the following. In the past few days, it's okay to get the Fortran in Linux. According to Internet searches, Intel compiler is the most famous and best-to-use. So I searched and downloaded the file online. However, because it was on CERNET, it could not go to Intel's of
The calling standard for a FORTRAN function uses the Iface declaration at compile time. such as Iface:default. Indicates that the default standard is used.The calling standard for Fortran has[1] default:tells the compiler to use the default calling conventions.[2] cref:tells the compiler to use calling conventions C, REFERENCE.[3] cvf:tells the compiler to use calling convention CVF.[4] [No]mixed_str_len_ar
The calling standard for a FORTRAN function uses the Iface declaration at compile time, such as Iface:default, which indicates that the default standard is used.The calling standard for Fortran has[1] default:tells the compiler to use the default calling conventions.[2] cref:tells the compiler to use calling conventions C, REFERENCE.[3] cvf:tells the compiler to use calling convention CVF.[4] [No]mixed_str_
written header files or explicitly User-Defined generation rules. for Fortran 90 programming, the concomitant *. MOD files play the role of header files in C/C ++. because they are automatically generated concomitantly with corresponding object files containing implementation of modules, there are no explicit User-Defined generation rules for these *. MOD files. hence, it is useless to put these *. MOD files into the variable built_sources. if no oth
1. Matrix multiplication (2015.09.28)Answer: Vector point multiplication function dot_product (A, b), matrix multiplication function Matmul (A, b), matrix multiplication includes vector point multiplication. For example
Program Matpro
Implicit noneReal:: A (3), B (3), C (3,1)
A (1) =1.0A (2) =2.0A (3) =3.0B (1) =4.0B (2) =3.4B (3) =2.1C (:, 1) =b (:)Write (*,*) dot_product (A, B), Matmul (A,C)
End Program Matpro
The result is the same.Use of the process of
This document details how to install the Fortran compiler in Linux.
1. Open http://gcc.gnu.org/wiki/GFortranBinaries in a browser
2. Download the 2-in Linux version, my Linux is fedora16, x86-64, so I chose http://gcc.gnu.org/wiki/gfortranbinariesunder64-bit amd-compatible processors (x86_64, amd64, intel64, em64t)2.1 find a file and download it to the local machine, I chose http://gfortran.com/download/x86_64/nightlies/gcc-trunk-20120601-r1
Vc creates a lib Project// Mydll. cpp# Include
# Define Maxx MAXX# Define Minn MINNExtern "C"{Int Maxx (int a, int B){If (a> = B) return;ElseReturn B;}Int Minn (int a, int B){If (a> = B) return B;ElseReturn;}}
Intel Fortran call:Program main! (Yes or no)
InterfaceInteger function maxx (a, B)Integer a, B! Ms $ attributes c, alias: '_ maxx': MAXXEnd function maxxInteger function minn (a, B)Integer a, B! Ms $ attributes c, alias: '_ minn': MINNEnd funct
I told you how the subroutine can't pass a mutable array.When writing a Fortran program, to achieve a specific function of the matrix, such as the Gauss method to solve the linear equations, many times the subroutine does not know the size of the matrix, such as the finite element program first to use the program to obtain the total stiffness matrix and then gross position just passed in the sub-program to solve the matrix equation. So implementing su
Software developers are often faced with a difficult choice when developing product-level code, you always want your code to be superior, which means you need to compile it at a high level of optimization, and you may want to debug the binary in your product, rather than the source files that are not optimized at compile time. If you've tried debugging optimized code, you probably already know the difficulty:
Source code statements do not execute sequentially, or they do not when you want them
CUDA 6, CUDAWarp
Logically, all threads are parallel. However, from the hardware point of view, not all threads can be executed at the same time. Next we will explain some of the essence of warp.Warps and Thread Blocks
Warp is the basic execution unit of SM. A warp contains 32 parallel threads, which are executed in SMIT mode. That is to say, all threads execute the same command, and each thread uses its own data to execute the command.
A block can be
Rewind and BACKSPACE of Fortran languageIn the early Fortran specification and compilers, backspace and rewind were indeed related to sequential storage devices such as tape drives. Later, it becomes a device-independent statement. However, it may be related to file mode.Rewind is still very common now. If your program needs to read the same text format data file two times, when you have finished reading th
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.