Article directory Preface 1. Sequential storage of stack (sequential stack) 2. Basic operations of the stack Push operation Pop operation Get the top element of the stack Get the length of the stack Determine whether the stack is empty Determine whether the stack is full Print the elements in the stack Test function 3. Shared […]
Tag: share
Shell implements deployment of ftp to provide shared yum warehouse
shell Script implementation script test The script realizes automatic configuration of vsftp and shares the opt directory with other node machines to realize offline source configuration. To use the script, you need to modify the following: ftp_ip is the ftp server ip reponame is the repo file name dir is the warehouse directory, which is […]
SpringMVC (4) domain object shared data
pageContext: represents the scope of the jsp page HttpServletRequest: represents the scope of a request HttpSession: represents the scope of a session ServletContext: represents the scope of the entire application 1. Share data to the requesting domain: 1.1 Use ServletAPI to share data with request domain objects @RequestMapping(“testServletAPI”) public String testServletAPI(HttpServletRequest request){ request.setAttribute(“testScope”,”hello,servletAPI”); return “success”; […]
CUDA~Static/Dynamic Shared Memory and Bank Conflict
Shared memory is an important part of model deployment and acceleration. It determines how efficient the optimization can be. It is mainly divided into dynamic and static shared memory. 1. Shared memory Input size is 4096 x 4096 matmul in gpu(warmup) uses 102.768669 ms matmul in gpu(without shared memory)<<<256, 16>>> uses 101.848831 ms matmul in […]
CUDA programming! In-depth analysis of static/dynamic shared memory and Bank Conflict (source code attached)
Click the Card below to follow the “Heart of Autonomous Driving” public account ADAS giant volume of dry information is now available >Click to enter→Heart of Autonomous Driving [Model Deployment] Technical Exchange Group Author of the paper | EasonBob 0. Write in front Shared memory is an important part of model deployment and acceleration. It […]
[1++ Linux] Inter-process communication (shared memory)
Author’s homepage: Attack 1++ Column link: [1++ Linux] We mentioned in the previous article that the essence of communication between processes is to first see the same resource and then communicate through this same resource. It is a one-way communication. It can only send from one end and read and share from the other end. […]
C++ smart pointers [Part 2] (shared_ptr/weak_ptr/circular reference/delete)
Article directory 4. Smart pointer [shared_ptr] 4.1 Design concept member properties 4.2 Main interfaces copy construction 4.3 Reference counting thread safety issues Test thread safety Making classes thread-safe through locking protection of counted references Class instantiated objects require manual locking and protection when used. The introduction of “lock” Thread reference parameter passing problem 4.4 Overall […]
CUDA Programming (8) Proper use of shared memory
Shared memory: Shared memory is a cache that can be directly controlled by programmers. It has two main functions: one is to reduce the number of global memory accesses in the kernel function and achieve efficient communication within the thread block, and the other is to improve global memory access. Degree of merger. We will […]
[OpenMP (1)] OpenMP multi-thread parallelization for shared memory parallel computing, comparison with STL and Boost multi-thread libraries
slurm multi-threading usage guide When using multi-threaded programs such as pthread and openmp, a single node and multiple cores are generally used for parallel computing. Assuming that the multi-threaded program is a program, the syntax of a generally submitted task is: Interactive: srun -c 8 program [args] Script submission: multi.sbatch #!/bin/bash #SBATCH -c 8 program […]
Publish the C# console program to run on the Linux server – effectively solve A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not
Table of Contents Starting point: The console program written in C# contains the function of subscribing to device-side data and storing the data to the local computer. However, the local computer sometimes shuts down. How to deploy the program to run on the server side and save the data for a long time? 1. C# […]