Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------------
- RuntimeError Traceback (most recent call last)
- Cell In[18], line 2
- 1 x = torch.ones(1, device=mps_device)
- ----> 2 print(x)
- File ~/miniconda3/envs/pytorch/lib/python3.11/site-packages/torch/_tensor.py:461, in Tensor.__repr__(self, tensor_contents)
- 457 return handle_torch_function(
- 458 Tensor.__repr__, (self,), self, tensor_contents=tensor_contents
- 459 )
- 460 # All strings are unicode in Python 3.
- --> 461 return torch._tensor_str._str(self, tensor_contents=tensor_contents)
- File ~/miniconda3/envs/pytorch/lib/python3.11/site-packages/torch/_tensor_str.py:677, in _str(self, tensor_contents)
- 675 with torch.no_grad(), torch.utils._python_dispatch._disable_current_modes():
- 676 guard = torch._C._DisableFuncTorch()
- --> 677 return _str_intern(self, tensor_contents=tensor_contents)
- File ~/miniconda3/envs/pytorch/lib/python3.11/site-packages/torch/_tensor_str.py:597, in _str_intern(inp, tensor_contents)
- 595 tensor_str = _tensor_str(self.to_dense(), indent)
- 596 else:
- --> 597 tensor_str = _tensor_str(self, indent)
- 599 if self.layout != torch.strided:
- 600 suffixes.append("layout=" + str(self.layout))
- File ~/miniconda3/envs/pytorch/lib/python3.11/site-packages/torch/_tensor_str.py:349, in _tensor_str(self, indent)
- 345 return _tensor_str_with_formatter(
- 346 self, indent, summarize, real_formatter, imag_formatter
- 347 )
- 348 else:
- --> 349 formatter = _Formatter(get_summarized_data(self) if summarize else self)
- 350 return _tensor_str_with_formatter(self, indent, summarize, formatter)
- File ~/miniconda3/envs/pytorch/lib/python3.11/site-packages/torch/_tensor_str.py:137, in _Formatter.__init__(self, tensor)
- 134 self.max_width = max(self.max_width, len(value_str))
- 136 else:
- --> 137 nonzero_finite_vals = torch.masked_select(
- 138 tensor_view, torch.isfinite(tensor_view) & tensor_view.ne(0)
- 139 )
- 141 if nonzero_finite_vals.numel() == 0:
- 142 # no valid number, do nothing
- 143 return
- RuntimeError: Failed to create indexing library, error: Error Domain=MTLLibraryErrorDomain Code=3 "program_source:168:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:160:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:168:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:160:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:168:1: error: explicit instantiation of 'index_select' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^
- program_source:160:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:9:1: note: expanded from here
- index_select
- ^
- program_source:20:13: note: candidate template ignored: substitution failure [with T = char, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_select(
- ^
- program_source:168:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:162:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:168:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:162:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:168:1: error: explicit instantiation of 'index_select' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^
- program_source:162:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:17:1: note: expanded from here
- index_select
- ^
- program_source:20:13: note: candidate template ignored: substitution failure [with T = short, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_select(
- ^
- program_source:168:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:164:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:168:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:164:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:168:1: error: explicit instantiation of 'index_select' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^
- program_source:164:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:25:1: note: expanded from here
- index_select
- ^
- program_source:20:13: note: candidate template ignored: substitution failure [with T = int, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_select(
- ^
- program_source:168:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:166:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:168:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:166:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^
- program_source:168:1: error: explicit instantiation of 'index_select' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^
- program_source:166:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:33:1: note: expanded from here
- index_select
- ^
- program_source:20:13: note: candidate template ignored: substitution failure [with T = long, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_select(
- ^
- program_source:169:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:160:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:169:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:160:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:169:1: error: explicit instantiation of 'index_put' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^
- program_source:160:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:41:1: note: expanded from here
- index_put
- ^
- program_source:111:13: note: candidate template ignored: substitution failure [with T = char, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put(
- ^
- program_source:169:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:162:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:169:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:162:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:169:1: error: explicit instantiation of 'index_put' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^
- program_source:162:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:49:1: note: expanded from here
- index_put
- ^
- program_source:111:13: note: candidate template ignored: substitution failure [with T = short, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put(
- ^
- program_source:169:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:164:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:169:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:164:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:169:1: error: explicit instantiation of 'index_put' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^
- program_source:164:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:57:1: note: expanded from here
- index_put
- ^
- program_source:111:13: note: candidate template ignored: substitution failure [with T = int, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put(
- ^
- program_source:169:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:166:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:169:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:166:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^
- program_source:169:1: error: explicit instantiation of 'index_put' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^
- program_source:166:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:65:1: note: expanded from here
- index_put
- ^
- program_source:111:13: note: candidate template ignored: substitution failure [with T = long, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put(
- ^
- program_source:211:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:203:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:179:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:211:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:203:75: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:211:1: error: explicit instantiation of 'index_put_serial' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^
- program_source:203:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:175:13: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:73:1: note: expanded from here
- index_put_serial
- ^
- program_source:87:13: note: candidate template ignored: substitution failure [with T = char, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put_serial(
- ^
- program_source:211:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:205:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:179:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:211:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:205:75: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:211:1: error: explicit instantiation of 'index_put_serial' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^
- program_source:205:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:175:13: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:81:1: note: expanded from here
- index_put_serial
- ^
- program_source:87:13: note: candidate template ignored: substitution failure [with T = short, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put_serial(
- ^
- program_source:211:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:207:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:179:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:211:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:207:75: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:211:1: error: explicit instantiation of 'index_put_serial' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^
- program_source:207:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:175:13: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:89:1: note: expanded from here
- index_put_serial
- ^
- program_source:87:13: note: candidate template ignored: substitution failure [with T = int, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put_serial(
- ^
- program_source:211:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:209:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:179:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:211:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:209:75: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^
- program_source:211:1: error: explicit instantiation of 'index_put_serial' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^
- program_source:209:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^
- program_source:175:13: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:97:1: note: expanded from here
- index_put_serial
- ^
- program_source:87:13: note: candidate template ignored: substitution failure [with T = long, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put_serial(
- ^
- program_source:242:17: error: type 'device ulong3 *' is not valid for attribute 'buffer'
- device ulong3 * data_offsets [[buffer(1)]],
- ^ ~~~~~~~~~
- program_source:242:24: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- device ulong3 * data_offsets [[buffer(1)]],
- ^
- program_source:240:13: error: explicit instantiation of 'kernel_index_offsets' does not refer to a function template, variable template, member function, member class, or static data member
- kernel void kernel_index_offsets<packed_uint3, ulong3>(
- ^
- program_source:214:13: note: candidate template ignored: substitution failure [with StridesT = unsigned int __attribute__((packed_vector_type(3))), DataT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long device * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void kernel_index_offsets(constant StridesT * strides [[buffer(0)]],
- ^
- program_source:351:5: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- constant ulong3 * offsets [[buffer(3)]],
- ^ ~~~~~~~~~
- program_source:351:14: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- constant ulong3 * offsets [[buffer(3)]],
- ^
- program_source:343:13: error: explicit instantiation of 'atomic_index_put_accumulate' does not refer to a function template, variable template, member function, member class, or static data member
- kernel void atomic_index_put_accumulate<float, ulong3>(
- ^
- program_source:292:13: note: candidate template ignored: substitution failure [with T = float, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void atomic_index_put_accumulate(
- ^
- program_source:383:5: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- constant ulong3 * offsets [[buffer(3)]],
- ^ ~~~~~~~~~
- program_source:383:14: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- constant ulong3 * offsets [[buffer(3)]],
- ^
- program_source:375:13: error: explicit instantiation of 'index_put_accumulate_native_dtypes' does not refer to a function template, variable template, member function, member class, or static data member
- kernel void index_put_accumulate_native_dtypes<atomic_int, int, ulong3>(
- ^
- program_source:248:13: note: candidate template ignored: substitution failure [with T = metal::_atomic<int>, E = int, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put_accumulate_native_dtypes(
- ^
- " UserInfo={NSLocalizedDescription=program_source:168:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:160:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:168:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:160:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:168:1: error: explicit instantiation of 'index_select' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^
- program_source:160:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:9:1: note: expanded from here
- index_select
- ^
- program_source:20:13: note: candidate template ignored: substitution failure [with T = char, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_select(
- ^
- program_source:168:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:162:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:168:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:162:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:168:1: error: explicit instantiation of 'index_select' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^
- program_source:162:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:17:1: note: expanded from here
- index_select
- ^
- program_source:20:13: note: candidate template ignored: substitution failure [with T = short, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_select(
- ^
- program_source:168:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:164:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:168:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:164:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:168:1: error: explicit instantiation of 'index_select' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^
- program_source:164:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:25:1: note: expanded from here
- index_select
- ^
- program_source:20:13: note: candidate template ignored: substitution failure [with T = int, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_select(
- ^
- program_source:168:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:166:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:168:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:166:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^
- program_source:168:1: error: explicit instantiation of 'index_select' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(select);
- ^
- program_source:166:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:33:1: note: expanded from here
- index_select
- ^
- program_source:20:13: note: candidate template ignored: substitution failure [with T = long, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_select(
- ^
- program_source:169:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:160:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:169:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:160:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:169:1: error: explicit instantiation of 'index_put' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^
- program_source:160:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:41:1: note: expanded from here
- index_put
- ^
- program_source:111:13: note: candidate template ignored: substitution failure [with T = char, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put(
- ^
- program_source:169:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:162:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:169:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:162:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:169:1: error: explicit instantiation of 'index_put' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^
- program_source:162:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:49:1: note: expanded from here
- index_put
- ^
- program_source:111:13: note: candidate template ignored: substitution failure [with T = short, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put(
- ^
- program_source:169:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:164:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:169:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:164:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:169:1: error: explicit instantiation of 'index_put' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^
- program_source:164:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:57:1: note: expanded from here
- index_put
- ^
- program_source:111:13: note: candidate template ignored: substitution failure [with T = int, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put(
- ^
- program_source:169:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:166:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:138:5: note: expanded from macro 'REGISTER_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:169:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:166:59: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^
- program_source:169:1: error: explicit instantiation of 'index_put' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_INDEX_OP_ALL_DTYPES(put);
- ^
- program_source:166:5: note: expanded from macro 'REGISTER_INDEX_OP_ALL_DTYPES'
- REGISTER_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^
- program_source:134:13: note: expanded from macro 'REGISTER_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:65:1: note: expanded from here
- index_put
- ^
- program_source:111:13: note: candidate template ignored: substitution failure [with T = long, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put(
- ^
- program_source:211:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:203:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:179:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:211:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:203:75: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:211:1: error: explicit instantiation of 'index_put_serial' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^
- program_source:203:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(8bit, idx64, char, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:175:13: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:73:1: note: expanded from here
- index_put_serial
- ^
- program_source:87:13: note: candidate template ignored: substitution failure [with T = char, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put_serial(
- ^
- program_source:211:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:205:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:179:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:211:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:205:75: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:211:1: error: explicit instantiation of 'index_put_serial' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^
- program_source:205:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(16bit, idx64, short, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:175:13: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:81:1: note: expanded from here
- index_put_serial
- ^
- program_source:87:13: note: candidate template ignored: substitution failure [with T = short, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put_serial(
- ^
- program_source:211:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:207:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:179:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:211:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:207:75: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:211:1: error: explicit instantiation of 'index_put_serial' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^
- program_source:207:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(32bit, idx64, int, INDEX_OP_TYPE, ulong3); \
- ^
- program_source:175:13: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:89:1: note: expanded from here
- index_put_serial
- ^
- program_source:87:13: note: candidate template ignored: substitution failure [with T = int, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put_serial(
- ^
- program_source:211:1: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:209:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- program_source:179:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- constant IDX_DTYPE * offsets [[buffer(3)]], \
- ^ ~~~~~~~~~
- program_source:211:1: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- program_source:209:75: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^
- program_source:211:1: error: explicit instantiation of 'index_put_serial' does not refer to a function template, variable template, member function, member class, or static data member
- REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES(put_serial);
- ^
- program_source:209:5: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP_ALL_DTYPES'
- REGISTER_SINGLE_THREADED_INDEX_OP(64bit, idx64, long, INDEX_OP_TYPE, ulong3);
- ^
- program_source:175:13: note: expanded from macro 'REGISTER_SINGLE_THREADED_INDEX_OP'
- kernel void index_ ## INDEX_OP_TYPE<DTYPE, IDX_DTYPE>( \
- ^
- <scratch space>:97:1: note: expanded from here
- index_put_serial
- ^
- program_source:87:13: note: candidate template ignored: substitution failure [with T = long, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put_serial(
- ^
- program_source:242:17: error: type 'device ulong3 *' is not valid for attribute 'buffer'
- device ulong3 * data_offsets [[buffer(1)]],
- ^ ~~~~~~~~~
- program_source:242:24: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- device ulong3 * data_offsets [[buffer(1)]],
- ^
- program_source:240:13: error: explicit instantiation of 'kernel_index_offsets' does not refer to a function template, variable template, member function, member class, or static data member
- kernel void kernel_index_offsets<packed_uint3, ulong3>(
- ^
- program_source:214:13: note: candidate template ignored: substitution failure [with StridesT = unsigned int __attribute__((packed_vector_type(3))), DataT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long device * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void kernel_index_offsets(constant StridesT * strides [[buffer(0)]],
- ^
- program_source:351:5: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- constant ulong3 * offsets [[buffer(3)]],
- ^ ~~~~~~~~~
- program_source:351:14: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- constant ulong3 * offsets [[buffer(3)]],
- ^
- program_source:343:13: error: explicit instantiation of 'atomic_index_put_accumulate' does not refer to a function template, variable template, member function, member class, or static data member
- kernel void atomic_index_put_accumulate<float, ulong3>(
- ^
- program_source:292:13: note: candidate template ignored: substitution failure [with T = float, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void atomic_index_put_accumulate(
- ^
- program_source:383:5: error: type 'const constant ulong3 *' is not valid for attribute 'buffer'
- constant ulong3 * offsets [[buffer(3)]],
- ^ ~~~~~~~~~
- program_source:383:14: note: type 'ulong3' (vector of 3 'unsigned long' values) cannot be used in buffer pointee type
- constant ulong3 * offsets [[buffer(3)]],
- ^
- program_source:375:13: error: explicit instantiation of 'index_put_accumulate_native_dtypes' does not refer to a function template, variable template, member function, member class, or static data member
- kernel void index_put_accumulate_native_dtypes<atomic_int, int, ulong3>(
- ^
- program_source:248:13: note: candidate template ignored: substitution failure [with T = metal::_atomic<int>, E = int, OffsetsT = unsigned long __attribute__((ext_vector_type(3)))]: type 'unsigned long const constant * __attribute__((ext_vector_type(3)))' is not valid for attribute 'buffer'
- kernel void index_put_accumulate_native_dtypes(
- ^
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement