The present disclosure relates to a method for processing a program for a single accelerator using a DNN framework in a plurality of accelerators. The method for processing a program for a single accelerator in a plurality of accelerators comprises the steps of: receiving a call for a deep learning operation function; receiving a call for an accelerator library function in order to execute a deep learning operation function in a single accelerator; assigning an accelerator library function to each of the plurality of accessible accelerators in response to the call for the accelerator library function; receiving, from each of the plurality of accelerators, intermediate result data of processing the accelerator library function; and generating result data for a called accelerator library function, on the basis of the received intermediate result data.
展开▼