A GPU card allocation method, system, device and storage medium

Through affinity classification and virtualization of GPU cards in the AI ​​training platform, ROCE network resource allocation is optimized, cross-subnet communication problems in multiple ROCE network card scenarios are solved, operation and maintenance costs are reduced, and performance is improved.

CN114528099BActive Publication Date: 2024-10-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210107395.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-28
Publication Date
2024-10-15
Estimated Expiration
2042-01-28

AI Technical Summary

Technical Problem

In a multi-ROCE network card scenario, the distributed training tasks of the AI ​​server require cross-subnet communication, resulting in increased cluster operation and maintenance complexity and cost, and serious cross-switch communication performance bottlenecks.

Method used

By classifying the GPU card of each node in the artificial intelligence training platform according to its affinity with the physical ROCE network card, detecting and defining ROCE network cards in different NUMA groups, virtualizing the physical ROCE network card, and optimizing the allocation of GPU and ROCE network resources, so that The virtual ROCE network cards used by multiple workers are in one subnet, thereby avoiding the need for cross-subnet communication.

Benefits of technology

It reduces cluster operation and maintenance costs, avoids complex cross-subnet communication requirements, improves the utilization efficiency of GPU resources, reduces the requirements for switch uplink bandwidth, and improves overall performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114528099B_ABST
    Figure CN114528099B_ABST
Patent Text Reader

Abstract

The present invention provides a method, system, device and storage medium for GPU card allocation, the method comprising: classifying the GPU cards in each node in an artificial intelligence training platform according to the affinity with the physical ROCE network card; detecting whether there are ROCE network cards belonging to different NUMA groups in the node; in response to the existence of ROCE network cards belonging to different NUMA groups in the node, defining the GPU resources of the node as different GPU resources, and reporting to the artificial intelligence training platform; and in response to the artificial intelligence training platform creating a training task, counting the idle number of different GPU resources of all nodes at present, and allocating the GPU resource with the largest number of idle resources at present to the training task. The present invention can avoid the need for cross-subnet communication of training tasks, avoid the introduction of more complex cross-subnet communication requirements by clusters, and reduce cluster operation and maintenance costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence training, and more specifically, to a method, system, device and storage medium for allocating a GPU card. Background Art

[0002] In AI (artificial intelligence) training scenarios, when an AI server has multiple GPU (Graphics Processing Unit) cards, in order to obtain the best training effect, a single AI server is sometimes equipped with 2, 4, or 8 high-performance network cards (ROCE network cards or Infiniband network cards). When a GPU server is equipped with multiple ROCE network cards, since the ROCE (RDMA over Converged Ethernet) protocol implements RDMA transmission based on UDP (User Datagram Protocol), an IP address needs to be configured for each ROCE network card. When a server has multiple ROCE network cards, multiple IPs belonging to different subnets are usually configured. When the GPU card used in a distributed training task meets the affinity with the ROCE network cards of different subnets, there is a need for cross-subnet communication. This usually requires the configuration of a complex network to achieve cross-subnet communication, which will increase the difficulty of cluster operation and maintenance. When cross-subnet communication is achieved across switches, the uplink bandwidth of the switch is usually required, otherwise there will be a performance bottleneck, which will also lead to an increase in operation and maintenance and price costs. Summary of the invention

[0003] In view of this, the purpose of the embodiments of the present invention is to propose a method, system, computer device and computer-readable storage medium for GPU card allocation. The present invention runs distributed artificial intelligence training tasks in a multi-ROCE network card scenario, optimizes the GPU and ROCE network resource allocation scheme, so that the VF (the embodiment of the present invention refers to the virtual ROCE network card) used by multiple workers of the same distributed training task will be in one subnet, thereby avoiding the need for cross-subnet communication of training tasks, avoiding the introduction of more complex cross-subnet communication requirements by the cluster, and reducing the cluster operation and maintenance costs.

[0004] Based on the above purpose, one aspect of an embodiment of the present invention provides a method for allocating GPU cards, comprising the following steps: classifying the GPU cards in each node in an artificial intelligence training platform according to the affinity with the physical ROCE network card; detecting whether there is a node with ROCE network cards belonging to different NUMA groups; in response to the existence of a node with ROCE network cards belonging to different NUMA groups, defining the GPU resources of the node as different GPU resources and reporting them to the artificial intelligence training platform; and in response to the artificial intelligence training platform creating a training task, counting the current idle number of different GPU resources of all nodes, and allocating the GPU resource with the largest current idle number to the training task.

[0005] In some implementations, counting the current idle numbers of different GPU resources of all nodes includes: determining the GPU resource with the largest current idle number in each node, and summing up each GPU resource in all nodes respectively.

[0006] In some embodiments, classifying the GPU cards in each node in the artificial intelligence training platform according to affinity with the physical ROCE network card includes: virtualizing the physical ROCE network card into a corresponding number of virtual ROCE network cards according to the number of GPU cards that are affinity with the physical ROCE network card.

[0007] In some implementations, allocating the GPU resources with the largest number of idle resources to the training task includes: determining a virtual ROCE network card corresponding to the GPU resources, and selecting one of the virtual ROCE network cards to allocate to the training task.

[0008] In another aspect of an embodiment of the present invention, a system for allocating GPU cards is provided, comprising: a classification module, configured to classify the GPU cards in each node in an artificial intelligence training platform according to the affinity with the physical ROCE network card; a detection module, configured to detect whether there is a node with ROCE network cards belonging to different NUMA groups; an execution module, configured to define the GPU resources of the node as different GPU resources in response to the existence of ROCE network cards belonging to different NUMA groups on the node, and report them to the artificial intelligence training platform; and an allocation module, configured to respond to the artificial intelligence training platform to create a training task, count the current idle numbers of different GPU resources of all nodes, and allocate the GPU resource with the largest current idle number to the training task.

[0009] In some implementations, the allocation module is configured to: determine the GPU resource with the largest number of free resources currently in each node, and sum each GPU resource in all nodes respectively.

[0010] In some implementations, the classification module is configured to: virtualize the physical ROCE network card into a corresponding number of virtual ROCE network cards according to the number of GPU cards that are affinity to the physical ROCE network card.

[0011] In some implementations, the allocation module is configured to: determine a virtual ROCE network card corresponding to the GPU resource, and select one of the virtual ROCE network cards to allocate to the training task.

[0012] According to another aspect of an embodiment of the present invention, a computer device is provided, comprising: at least one processor; and a memory, wherein the memory stores computer instructions executable on the processor, and the instructions implement the steps of the above method when executed by the processor.

[0013] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program that implements the above method steps when executed by a processor.

[0014] The present invention has the following beneficial technical effects: running distributed artificial intelligence training tasks in a multi-ROCE network card scenario, optimizing the GPU and ROCE network resource allocation scheme, so that the virtual ROCE network cards used by multiple workers of the same distributed training task are all in one subnet, thereby avoiding the need for cross-subnet communication of training tasks, avoiding the introduction of more complex cross-subnet communication requirements by the cluster, and reducing the cluster operation and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.

[0016] Figure 1 A schematic diagram of an embodiment of a method for allocating GPU cards provided by the present invention;

[0017] Figure 2 A schematic diagram of an embodiment of a system for allocating GPU cards provided by the present invention;

[0018] Figure 3 A schematic diagram of the hardware structure of an embodiment of a computer device allocated with a GPU card provided by the present invention;

[0019] Figure 4 A schematic diagram of an embodiment of a computer storage medium allocated to a GPU card provided by the present invention. DETAILED DESCRIPTION

[0020] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0021] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.

[0022] A first aspect of the embodiments of the present invention provides an embodiment of a method for allocating GPU cards. Figure 1 FIG. 2 is a schematic diagram of an embodiment of a method for allocating GPU cards provided by the present invention. Figure 1 As shown, the embodiment of the present invention includes the following steps:

[0023] S1. Classify the GPU cards in each node of the artificial intelligence training platform according to their affinity with the physical ROCE network card;

[0024] S2. Check whether there are any nodes with ROCE network cards belonging to different NUMA groups;

[0025] S3. In response to the existence of ROCE network cards belonging to different NUMA groups on a node, define the GPU resources of the node as different GPU resources, and report them to the artificial intelligence training platform; and

[0026] S4. In response to the artificial intelligence training platform creating a training task, the idle number of different GPU resources of all nodes is counted, and the GPU resource with the largest idle number is allocated to the training task.

[0027] The embodiment of the present invention builds an AI training platform based on Kubernetes, implements virtualization of physical ROCE network cards based on SRIOV, and classifies GPU cards in nodes according to their affinity with physical ROCE network cards based on self-developed node resource management components. When there are two ROCE network cards belonging to different NUMA groups in a node, the GPU resources of the node are defined as two types of GPU resources and reported to the AI ​​training platform. When creating training tasks, the AI ​​training platform applies for these two types of GPU resources based on certain strategies. Distributed tasks using the same type of GPU resources will run on multiple nodes. NCCL will select ROCE network cards based on the affinity between GPU and ROCE network cards, and will select ROCE network cards belonging to the same subnet.

[0028] The PF in the embodiment of the present invention refers to a physical ROCE network card, and the VF refers to a virtual ROCE network card.

[0029] The GPU cards in each node in the artificial intelligence training platform are classified according to their affinity with the physical ROCE network card.

[0030] The GPU server contains two ROCE network cards belonging to different NUMA (Non Uniform Memory Access) groups and is configured with IP addresses belonging to different subnets. The self-developed AI training platform is deployed. Taking two nodes as an example, as shown in the following table, the virtualization ratio of PF to VF is based on the number of GPUs that are affinity with the physical ROCE card. For example, if there are 4 GPU cards affinity with the physical ROCE network card, one PF is virtualized into 4 VFs.

[0031]

[0032] Detect whether there is a node with ROCE network cards belonging to different NUMA groups. In response to the existence of a node with ROCE network cards belonging to different NUMA groups, define the GPU resources of the node as different GPU resources and report them to the artificial intelligence training platform.

[0033] Each GPU server deploys a resource management component to automatically discover the affinity between the GPU card and the physical ROCE network card. As shown below:

[0034] (GPU0, GPU1, GPU2, GPU3) and ROCE1 network card are based on NUMA affinity, that is, affinity with VF (mlx5_4, mlx5_5, mlx5_6, mlx5_7). When NCCL runs training tasks, when (GPU0, GPU1, GPU2, GPU3) is used, the VF corresponding to ROCE1 network card will be selected, and these 4 GPUs and 4 VFs will be defined as a type of resource, which can be represented by the resource name inspur.com / gpu-roce1 and reported to the Kubernetes management platform according to the following combination:

[0035] ["GPU0 / mlx5_4", "GPU1 / mlx5_5", "GPU2 / mlx5_6", "GPU3 / mlx5_7"].

[0036] When a training task applies for such resources, both the GPU and VF are allocated to the container.

[0037] (GPU4, GPU5, GPU6, GPU7) and ROCE1 network card are based on NUMA affinity, that is, affinity with VF (mlx5_8, mlx5_9, mlx5_10, mlx5_11). When NCCL runs training tasks, when (GPU4, GPU5, GPU6, GPU7) is used, it will select the VF corresponding to the ROCE2 network card, and define these 4 GPUs and 4 VFs as a type of GPU resources, which can be represented by the resource name inspur.com / gpu-roce2 and reported to the Kubernetes management platform according to the following combination:

[0038] ["GPU4 / mlx5_8", "GPU5 / mlx5_9", "GPU6 / mlx5_10", "GPU7 / mlx5_11"].

[0039] When a training task applies for such resources, both the GPU and VF are allocated to the container.

[0040] In response to the artificial intelligence training platform creating a training task, the idle number of different GPU resources of all nodes is counted, and the GPU resource with the largest idle number is allocated to the training task.

[0041] In some implementations, counting the current idle numbers of different GPU resources of all nodes includes: determining the GPU resource with the largest current idle number in each node, and summing up each GPU resource in all nodes respectively.

[0042] When creating a training task, you only need to apply for inspur.com / gpu-roce1 or inspur.com / gpu-roce2. The value corresponding to the resource indicates the actual number of GPU cards. If the number of idle resources of inspur.com / gpu-roce1 is greater than the number of idle resources of inspur.com / gpu-roce2, the node is recommended to apply for inspur.com / gpu-roce1 resources. Otherwise, the node is recommended to apply for inspur.com / gpu-roce2. Add the number of nodes recommended to apply for inspur.com / gpu-roce1 and inspur.com / gpu-roce2 resources respectively. When the number of nodes recommended to apply for inspur.com / gpu-roce1 resources in the cluster is greater than the number of nodes recommended to apply for inspur.com / gpu-roce2, the newly created training task applies for inspur.com / gpu-roce1 resources; if the number of nodes recommended to apply for inspur.com / gpu-roce1 resources in the cluster is less than the number of nodes recommended to apply for inspur.com / gpu-roce2, the newly created training task applies for inspur.com / gpu-roce2 resources; if the number of nodes recommended to apply for inspur.com / gpu-roce1 resources in the cluster is equal to the number of nodes recommended to apply for inspur.com / gpu-roce2, the newly created training task can apply for inspur.com / gpu-roce1 or inspur.com / gpu-roce2.

[0043] In some embodiments, classifying the GPU cards in each node in the artificial intelligence training platform according to affinity with the physical ROCE network card includes: virtualizing the physical ROCE network card into a corresponding number of virtual ROCE network cards according to the number of GPU cards that are affinity with the physical ROCE network card.

[0044] In some implementations, allocating the GPU resources with the largest number of idle resources to the training task includes: determining a virtual ROCE network card corresponding to the GPU resources, and selecting one of the virtual ROCE network cards to allocate to the training task.

[0045] When the underlying resource allocation component allocates GPU resources and ROCE network card resources to the container of the training task, it allocates GPU resources and VF resources to it at the same time according to the resource type requested by the training task. When the resource requested by the training task is inspur.com / gpu-roce1=2, it means that two GPU cards are allocated to the task, and the VF corresponding to the GPU card is allocated at the same time. The GPU resources are processed according to the GPU ID assigned by Kubernetes. Only one VF needs to be selected and returned to Kubernetes through the transparent transmission of the --device parameter.

[0046] Set environment variables, such as NVIDIA_DEVICE_IDS = GPU-aaaf4930-07bd-00a5-c751-e173757cad99, GPU-b04a7a3d-f538-58d7-29c4-c1a4fff1a45c (indicating the GPUdevice IDs of GPU0 and GPU1). Set the VF device name --DEVICES = 00:5e:00.1 (indicating the PCI ID of mlx5_4). The GPU card and VF card passed to the container in this way meet the affinity by default, and NCCL will automatically select the VF for the GPU (the resource management component also needs to set the device name corresponding to the VF in the / etc / nccl.conf file). Complete the IP configuration and activation of the VF when the training task container is started.

[0047] It should be particularly pointed out that the various steps in the various embodiments of the above-mentioned GPU card allocation method can be cross-linked, replaced, added, and deleted. Therefore, these reasonable permutations, combinations and transformations of the GPU card allocation method should also fall within the protection scope of the present invention, and the protection scope of the present invention should not be limited to the embodiments.

[0048] Based on the above purpose, the second aspect of the embodiment of the present invention provides a system for allocating GPU cards. Figure 2 As shown, the system 200 includes the following modules: a classification module, configured to classify the GPU cards in each node in the artificial intelligence training platform according to the affinity with the physical ROCE network card; a detection module, configured to detect whether there are ROCE network cards belonging to different NUMA groups on the node; an execution module, configured to define the GPU resources of the node as different GPU resources in response to the existence of ROCE network cards belonging to different NUMA groups on the node, and report them to the artificial intelligence training platform; and an allocation module, configured to create a training task in response to the artificial intelligence training platform, count the current idle numbers of different GPU resources of all nodes, and allocate the GPU resource with the largest current idle number to the training task.

[0049] In some implementations, the allocation module is configured to: determine the GPU resource with the largest number of free resources currently in each node, and sum each GPU resource in all nodes respectively.

[0050] In some implementations, the classification module is configured to: virtualize the physical ROCE network card into a corresponding number of virtual ROCE network cards according to the number of GPU cards that are affinity to the physical ROCE network card.

[0051] In some implementations, the allocation module is configured to: determine a virtual ROCE network card corresponding to the GPU resource, and select one of the virtual ROCE network cards to allocate to the training task.

[0052] Based on the above purpose, a third aspect of an embodiment of the present invention proposes a computer device, comprising: at least one processor; and a memory, the memory storing computer instructions that can be run on the processor, the instructions being executed by the processor to implement the following steps: S1, classifying the GPU cards in each node in the artificial intelligence training platform according to the affinity with the physical ROCE network card; S2, detecting whether there are ROCE network cards belonging to different NUMA groups on the node; S3, in response to the existence of ROCE network cards belonging to different NUMA groups on the node, defining the GPU resources of the node as different GPU resources, and reporting them to the artificial intelligence training platform; and S4, in response to the artificial intelligence training platform creating a training task, counting the current idle number of different GPU resources of all nodes, and allocating the GPU resource with the largest current idle number to the training task.

[0053] In some implementations, counting the current idle numbers of different GPU resources of all nodes includes: determining the GPU resource with the largest current idle number in each node, and summing up each GPU resource in all nodes respectively.

[0054] In some embodiments, classifying the GPU cards in each node in the artificial intelligence training platform according to affinity with the physical ROCE network card includes: virtualizing the physical ROCE network card into a corresponding number of virtual ROCE network cards according to the number of GPU cards that are affinity with the physical ROCE network card.

[0055] In some implementations, allocating the GPU resources with the largest number of idle resources to the training task includes: determining a virtual ROCE network card corresponding to the GPU resources, and selecting one of the virtual ROCE network cards to allocate to the training task.

[0056] like Figure 3 , which is a schematic diagram of the hardware structure of an embodiment of the computer device allocated with the GPU card provided by the present invention.

[0057] As Figure 3 Taking the device shown as an example, the device includes a processor 301 and a memory 302.

[0058] The processor 301 and the memory 302 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0059] The memory 302 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the method for allocating GPU cards in the embodiment of the present application. The processor 301 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 302, that is, implementing the method for allocating GPU cards.

[0060] The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the method allocated by the GPU card, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 302 may optionally include a memory remotely arranged relative to the processor 301, and these remote memories may be connected to the local module via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0061] Computer instructions 303 corresponding to one or more GPU card allocation methods are stored in the memory 302. When executed by the processor 301, the GPU card allocation method in any of the above method embodiments is executed.

[0062] Any embodiment of the computer device that executes the above-mentioned GPU card allocation method can achieve the same or similar effect as any corresponding embodiment of the above-mentioned method.

[0063] The present invention also provides a computer-readable storage medium, which stores a computer program for executing the method for allocating GPU cards when the computer-readable storage medium is executed by a processor.

[0064] like Figure 4 As shown in FIG. 1 , a schematic diagram of an embodiment of the computer storage medium allocated to the GPU card provided by the present invention is shown. Figure 4Taking the computer storage medium shown as an example, the computer readable storage medium 401 stores a computer program 402 that performs the above method when executed by a processor.

[0065] Finally, it should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the program of the GPU card allocation method can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiment can achieve the same or similar effect as any of the corresponding aforementioned method embodiments.

[0066] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.

[0067] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.

[0068] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0069] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0070] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A method for allocating GPU cards, characterized in that: The steps include: Classify the GPU cards in each node of the AI ​​training platform according to their affinity with the physical ROCE network card; Check whether there are ROCE network cards in different NUMA groups on the node; In response to the existence of ROCE network cards belonging to different NUMA groups on a node, defining GPU resources of the node as different GPU resources and reporting them to the artificial intelligence training platform; as well as In response to the artificial intelligence training platform creating a training task, counting the idle numbers of different GPU resources of all nodes, and allocating the GPU resource with the largest idle number to the training task; The classifying the GPU cards in each node in the artificial intelligence training platform according to the affinity with the physical ROCE network card includes: virtualizing the physical ROCE network card into a corresponding number of virtual ROCE network cards according to the number of GPU cards with affinity with the physical ROCE network card; The allocating the GPU resources with the largest number of idle resources to the training task includes: determining a virtual ROCE network card corresponding to the GPU resource, and selecting one of the virtual ROCE network cards to allocate to the training task.

2. The method according to claim 1, characterized in that The statistics of the idle number of different GPU resources of all nodes include: Determine the GPU resource with the largest number of free resources on each node, and sum each GPU resource on all nodes.

3. A system for allocating GPU cards, characterized in that: include: A classification module configured to classify the GPU cards in each node of the artificial intelligence training platform according to the affinity with the physical ROCE network card; A detection module is configured to detect whether a node has ROCE network cards belonging to different NUMA groups; An execution module is configured to define the GPU resources of the node as different GPU resources in response to the presence of ROCE network cards belonging to different NUMA groups on the node, and report to the artificial intelligence training platform; as well as An allocation module, configured to respond to the artificial intelligence training platform creating a training task, count the current idle numbers of different GPU resources of all nodes, and allocate the GPU resource with the largest current idle number to the training task; The classification module is configured to: virtualize the physical ROCE network card into a corresponding number of virtual ROCE network cards according to the number of GPU cards that are affinity with the physical ROCE network card; The allocation module is configured to: determine a virtual ROCE network card corresponding to the GPU resource, and select one of the virtual ROCE network cards to allocate to the training task.

4. The system according to claim 3, characterized in that The allocation module is configured to: Determine the GPU resource with the largest number of free resources on each node, and sum each GPU resource on all nodes.

5. A computer device, characterized in that: include: at least one processor; as well as A memory, wherein the memory stores computer instructions executable on the processor, wherein the instructions, when executed by the processor, implement the steps of the method according to any one of claims 1 to 2.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • Dispatching method of virtual processor based on NUMA high-performance network cache resource affinity

    CN104199718A

  • Virtual machine memory based on NUMA framework and network card resource affinity calculation method

    CN108021429A

  • Cloud host creation method, apparatus and device, and readable storage medium

    CN112463300A

  • Flexible distributed AI training cloud platform deployment method and related platform

    CN113515341A

  • Topology aware grouping and provisioning of GPU resources in GPU-as-a-Service platform

    US10325343B1