[PYTHON][TESTS][DOC] Various improvement of the API and code quality:
* Simplified `triton.kernel` API to achieve lower latency: > .data_ptr() must now be passed as kernel argument. No more implicit conversion from torch.tensor > compilation options are now constant attributes, i.e., opt.d('VAR') becomes opt.VAR > torch.device must now be passed explicitly to triton.kernel (no longer inferred from torch.tensor arguments) * C++ tests moved to `python/tests/` * C++ tutorial created in `tutorials/` * Python tutorial created in python/tutorials/ * Version changed to 1.0alpha * No longer copying C++ headers into the Python package * added python/triton/ops/ package for pre-written Triton ops
This commit is contained in:
@@ -108,11 +108,9 @@ void Parser::ParseTranslationUnit() {
|
||||
|
||||
FuncDef* Parser::ParseFuncDef(Identifier* ident) {
|
||||
auto funcDef = EnterFunc(ident);
|
||||
|
||||
if (funcDef->FuncType()->Complete()) {
|
||||
Error(ident, "redefinition of '%s'", funcDef->Name().c_str());
|
||||
}
|
||||
|
||||
// TODO(wgtdkp): param checking
|
||||
auto funcType = ident->Type()->ToFunc();
|
||||
funcType->SetComplete(true);
|
||||
|
Reference in New Issue
Block a user