]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - liboffloadmic/runtime/offload_target.h
backport: Makefile.am (liboffloadmic_host_la_DEPENDENCIES): Remove libcoi_host and...
[thirdparty/gcc.git] / liboffloadmic / runtime / offload_target.h
index f3a42f982c85c51c525ec9a70f1d421c005e4ddd..5638796f2d1d623ca76a7ae860a26d08e328568b 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (c) 2014 Intel Corporation.  All Rights Reserved.
+    Copyright (c) 2014-2015 Intel Corporation.  All Rights Reserved.
 
     Redistribution and use in source and binary forms, with or without
     modification, are permitted provided that the following conditions
@@ -99,16 +99,16 @@ private:
 };
 
 // one time target initialization in main
-extern void __offload_target_init(void);
+DLL_LOCAL extern void __offload_target_init(void);
 
 // logical device index
-extern int mic_index;
+DLL_LOCAL extern int mic_index;
 
 // total number of available logical devices
-extern int mic_engines_total;
+DLL_LOCAL extern int mic_engines_total;
 
 // device frequency (from COI)
-extern uint64_t mic_frequency;
+DLL_LOCAL extern uint64_t mic_frequency;
 
 struct RefInfo {
     RefInfo(bool is_add, long amount):is_added(is_add),count(amount)