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 […]
Tag: shared
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 […]
[Linux] Inter-process communication – shared memory
Table of Contents 1. What is shared memory? 2. The principle of shared memory 3. Use shared memory to implement inter-process communication 3.1 shmget interface 3.1.1 Detailed explanation of key parameters 3.2 Release shared memory 3.2.1 ipcs command 3.2.2 ipcrm command 3.2.3 shmctl interface 3.3 Associative shared memory 3.4 De-associate shared memory 3.5 Examples of […]
Build a shared disk (iscsi disk sharing)
1. Overview of iscsi disk sharing The implementation principle of iSCSI disk sharing is mainly based on iSCSI Target software and TCP/IP network protocol. The storage space of the server is allocated to the client. The client can use the iSCSI disk like a local hard disk, including partitioning and formatting it. And reading and […]