Yu Yang
43c6ff212e
Feature/nccl dso ( #5001 )
...
* "add nccl enforce"
* Dev
* Update comment
* Add nccl test
* Follow comments
8 years ago
Luo Tao
871a3f6e76
remove unused PADDLE_ONLY_CPU comment
8 years ago
Yi Wang
4558807c48
Use PADDLE_WITH_CUDA instead of PADDLE_WITH_GPU
8 years ago
Yu Yang
84500f9487
Change `PADDLE_ONLY_CPU` to `PADDLE_WITH_GPU`
...
By shell command
```bash
sed -i 's#ifdef PADDLE_ONLY_CPU#ifndef PADDLE_WITH_GPU#g' `find ./paddle/ -name '*.h' -o -name '*.cc' -o -name '*.cpp' -o -name '*.c' -o -name '*.cu'`
sed -i 's#ifndef PADDLE_ONLY_CPU#ifdef PADDLE_WITH_GPU#g' `find ./paddle/ -name '*.h' -o -name '*.cc' -o -name '*.cpp' -o -name '*.c' -o -name '*.cu'`
```
8 years ago
Yu Yang
8fd845e0fa
Unify Map in OpDescBind
8 years ago
Yu Yang
699dbe3be9
Use `bool` for PADDLE_ENFORCE, not int
...
* If stat is an integer, bool value will implicit cast to int before
pass to PADDLE_ENFORCE
8 years ago
liaogang
59d661b9a9
Fix enforce test failed
...
Note: If no symbol with a suitable value is found, both this field and dli_saddr shall be set to NULL.
8 years ago
Yu Yang
dad5421afe
Remove enforce demangle
...
It is buggy in some Linux because the unique_ptr will be free however
the std::string trying to use that char*.
Moreover, it is no need to demangle for error log by Paddle.
Just use `c++filt` or other shell utilities to do this.
8 years ago
Yu Yang
f7d32c614d
Fix bug of enforce when dladdr not found
...
* Wrong Printf format before
8 years ago
liaogang
ffbb4c1963
memory.h for unique_ptr
8 years ago
liaogang
8210bcea61
Using static_cast<char*> to replace (char*)
8 years ago
liaogang
b4755c5aa7
Demangle exception call stack for PADDLE_ENFORCE
8 years ago
Yu Yang
a573dd4cc6
Use ostream << operator to get to_string
...
* Make `PADDLE_ENFORCE_EQ` supports custom class, like DDim
8 years ago
Yan Chunwei
2af35002f7
fix some enforce ( #3301 )
...
* fix some enforce
* remove compatible_type to avoid compile error
* remove shared_ptr
* fix tensor error msg
8 years ago
Superjom
62e592e58b
fix ci error
8 years ago
Superjom
5201b911a4
add other enforces
8 years ago
Superjom
ddacdf1735
init enforce eq
8 years ago
Superjom
5485caf7f7
add EQ
8 years ago
qijun
81cc7a3227
merge baidu/develop
8 years ago
Yu Yang
8395af06de
Add Backtrace for enforce
8 years ago
qijun
4a1f7bd21f
add gpu python op test
8 years ago
liaogang
7829bdbd9a
Fix conflicts
8 years ago
Yu Yang
e3f5fdcc7a
Make PADDLE_ENFORCE and PADDLE_THROW catchable
...
* Use EnforceNotMet to unify all exception types.
8 years ago
liaogang
ca89bfada3
Fix paddle enforce special cases
8 years ago
liaogang
2d2ee47bda
FIX: fix string
8 years ago
liaogang
97c2a9a969
Fix: compiler error under gpu
8 years ago
liaogang
941eccac83
Follow comments
8 years ago
liaogang
7010a5da1a
FIX: throw_on_error on cuda
8 years ago
liaogang
2680dca9c8
ENH: add cuda enforce to PADDLE_ENFORCE
8 years ago