SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use the files in this directory except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.



The example codes included in this directory are a portion of the code samples
from the companion website to the book "CUDA Fortran for Scientists and Engineers",
both 1st and 2nd editions:

http://store.elsevier.com/product.jsp?isbn=9780124169708

These codes for the first edition are organized by chapter:

Part I - CUDA Fortran Programming

Chapter 1: Introduction
Chapter 2: Performance Measurement and Metrics
Chapter 3: Optimization
Chapter 4: Multi-GPU Programming

Part II - Case Studies

Chapter 5: Monte Carlo Method
Chapter 6: Finite Difference Method
Chapter 7: Applications of Fast Fourier Transform

Appendix C: Calling CUDA C from CUDA Fortran



The codes for the second edition are also organized by chapter:

Part I - CUDA Fortran Programming

Chapter 1 (ch01): Introduction
Chapter 2 (ch02): Correctness, Accuracy and Debugging
Chapter 3 (ch03): Performance Measurement and Metrics
Chapter 4 (ch04): Synchronization
Chapter 5 (ch05): Optimization
Chapter 6 (ch06): Porting Tips and Techniques
Chapter 7 (ch07): Interfacing with CUDA C Code and CUDA Libraries
Chapter 8 (ch08): Multi-GPU Programming

Part II - Case Studies

Chapter 9  (ch09): Monte Carlo Method
Chapter 10 (ch10): Finite Difference Method
Chapter 11 (ch11): Applications of Fast Fourier Transform
Chapter 12 (ch12): Ray Tracing

