Skip to content

Commit

Permalink
Fix dummy plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
kwen2501 committed Dec 6, 2018
1 parent 5736818 commit 8606cdb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext-net/dummy/plugin.c
Expand Up @@ -4,13 +4,12 @@
* See LICENSE.txt for license information
************************************************************************/

#include <stdio.h>
#include <nccl.h>
#include <nccl_net.h>

#define __hidden __attribute__ ((visibility("hidden")))

__hidden ncclResult_t pluginInit() { return ncclSuccess; }
__hidden ncclResult_t pluginInit(ncclDebugLogger_t logFunction) { return ncclSuccess; }
__hidden ncclResult_t pluginDevices(int* ndev) { *ndev = 0; return ncclSuccess; }
__hidden ncclResult_t pluginPciPath(int dev, char** path) { return ncclInternalError; }
__hidden ncclResult_t pluginPtrSupport(int dev, int* supportedTypes) { return ncclInternalError; }
Expand Down

0 comments on commit 8606cdb

Please sign in to comment.