Fortran Refresher | Fortran pointers | Lesson 8

  Рет қаралды 34

Pawsey Supercomputing Research Centre

Pawsey Supercomputing Research Centre

Күн бұрын

This video is part of the playlist • Fortran Refresher . Click the link to view the entire playlist.
Accompanying notebook: github.com/pel...
Pointers in Fortran are declared with the pointer option in addition to a data type. Unlike void pointers in C, Fortran pointers must only "point" to objects of the same data type, and there is a restriction in that pointers can only "point" to objects with the target attribute set, or memory pointed at by other pointers. Using Fortran pointers is usually not best practice because their misuse can introduce memory safety bugs, however they are useful for interopability with C code in libraries such as HIP.
Using the allocate command, we can allocate memory and associate it with a Fortran pointer, and then treat the pointer as an array.

Пікірлер
Fortran Refresher | Creating functions and subroutines | Lesson 9
20:26
Pawsey Supercomputing Research Centre
Рет қаралды 35
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 335 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
L05 Memory Management in hipFORT | Automatic memory management with managed memory | Ep 19
29:33
Pawsey Supercomputing Research Centre
Рет қаралды 27
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 189 М.
MAT 217 - Fall 2024 - Exam 3 Solutions
36:05
Steven Ruiz
Рет қаралды 12
Building Real-time Apps with Go | Azim Pulat
54:58
Azim Pulat
Рет қаралды 63 М.
TCP/IP for Programmers
3:03:31
Eli the Computer Guy
Рет қаралды 239 М.
L05 Memory Management in hipFORT | Manual management of Host and Device Memory | Ep 15
12:52
Pawsey Supercomputing Research Centre
Рет қаралды 12
L05 Memory Management in hipFORT | Optimizing Memory Transfers between CPU and GPU | Ep 18
19:18
Pawsey Supercomputing Research Centre
Рет қаралды 35
Clean Code - Uncle Bob / Lesson 1
1:48:42
UnityCoin
Рет қаралды 2 МЛН
Intro to the Zig Programming Language • Andrew Kelley • GOTO 2022
50:14