[CODEGEN] Fixed bug in atomic_add
This commit is contained in:
@@ -230,6 +230,7 @@ std::unique_ptr<driver::module> function::make_bin(ir::module &module,
|
||||
}
|
||||
peephole.run(module);
|
||||
dce.run(module);
|
||||
// ir::print(module, std::cout);
|
||||
align.run(module);
|
||||
axes.run(module);
|
||||
layouts.run(module);
|
||||
@@ -238,7 +239,6 @@ std::unique_ptr<driver::module> function::make_bin(ir::module &module,
|
||||
if(allocation.allocated_size() > context->device()->max_shared_memory())
|
||||
throw std::runtime_error("using too much shared memory");
|
||||
barriers.run(module);
|
||||
//ir::print(module, std::cout);
|
||||
isel.visit(module, *llvm);
|
||||
std::unique_ptr<driver::module> res(driver::module::create(context, std::move(llvm)));
|
||||
return res;
|
||||
@@ -364,6 +364,8 @@ std::string function::preheader() {
|
||||
|
||||
DECLARATION(float, 64, 64);
|
||||
DECLARATION(half , 64, 64);
|
||||
DECLARATION(half , 64, 128);
|
||||
DECLARATION(half , 128, 64);
|
||||
DECLARATION(half , 128, 128);
|
||||
|
||||
extern int atomic_cas(int*, int, int);
|
||||
|
Reference in New Issue
Block a user