fix ane on new mac os x
MODIFY
accel/MAPPING
accel/MAPPING
@@ -18,6 +18,8 @@ We observe about 10x factor off with pytorch.
We will focus on speed for AMD, since we have complete docs for that GPU.
Each "processor" has an "ultra threaded dispatch processor"
+Each SIMD unit has 256 vector registers (or 1024?), and operates on 32 at once.
+Ahh, I think there's 1024 total, but only 256 per wavefront
M1:

MODIFY
accel/ane/2_compile/compile.mm
accel/ane/2_compile/compile.mm
@@ -11,12 +11,12 @@ extern "C" {
std::string _ZN19ZinMirCacheHintUtil17CacheHintToStringE15ZinMirCacheHint(int op);
std::string _ZN30ZinMirKernelSizeSplitterEngine16ConvKindToStringENS_8ConvKindE(int op);
- void _Z24ZinIrRegBitPrintOutDebugILj7EE11ZinIrStatusjRN11ZinHWTraitsIXT_EE6HwTypeEiRNSt3__113basic_ostreamIcNS5_11char_traitsIcEEEE(
+ /*void _Z24ZinIrRegBitPrintOutDebugILj7EE11ZinIrStatusjRN11ZinHWTraitsIXT_EE6HwTypeEiRNSt3__113basic_ostreamIcNS5_11char_traitsIcEEEE(
unsigned long param_1, void *param_2,int param_3, std::basic_ostream<char> *param_4);
void debugregs(int a1, void *dat, int a2) {
_Z24ZinIrRegBitPrintOutDebugILj7EE11ZinIrStatusjRN11ZinHWTraitsIXT_EE6HwTypeEiRNSt3__113basic_ostreamIcNS5_11char_traitsIcEEEE(a1, dat, a2, &std::cout);
-}
+}*/
}

MODIFY
accel/ane/lib/ane.mm
accel/ane/lib/ane.mm
@@ -194,7 +194,7 @@ int ANE_CompilePlist(char *path, bool debug=false) {
return ANECCompile(optionsDictionary, flagsDictionary, 0);
}
-void _Z24ZinIrRegBitPrintOutDebugILj7EE11ZinIrStatusjRN11ZinHWTraitsIXT_EE6HwTypeEiRNSt3__113basic_ostreamIcNS5_11char_traitsIcEEEE(
+/*void _Z24ZinIrRegBitPrintOutDebugILj7EE11ZinIrStatusjRN11ZinHWTraitsIXT_EE6HwTypeEiRNSt3__113basic_ostreamIcNS5_11char_traitsIcEEEE(
unsigned long param_1, void *param_2,int param_3, std::basic_ostream<char> *param_4);
char *ANE_RegDebug(int a1, void *dat, int a2) {
std::ostringstream ss;
@@ -204,7 +204,7 @@ char *ANE_RegDebug(int a1, void *dat, int a2) {
char *ret = (char *)malloc(strlen(str)+1);
strcpy(ret, str);
return ret;
-}
+}*/
}

MODIFY
accel/ane/lib/ane.py
accel/ane/lib/ane.py
@@ -27,7 +27,7 @@ def init_libane():
libane.ANE_Run.argtypes = [c_void_p]*4
libane.ANE_Run.restype = c_int
- libane.ANE_RegDebug.restype = c_char_p
+ #libane.ANE_RegDebug.restype = c_char_p
with open(os.path.join(basedir, "aneregs.json")) as f:
aneregs = json.load(f)

fix ane on new mac os x