Skip to content

Commit 6216b59

Browse files
committed
Resolve conflicts
2 parents 2f024ba + 737f2bf commit 6216b59

35 files changed

+4148
-256
lines changed

doc/getstarted/build_and_install/docker_install.rst

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ automatically runs the following commands:
1919

2020
.. code-block:: base
2121
22-
docker build -t paddle:cpu-noavx -f paddle/scripts/docker/Dockerfile .
23-
docker build -t paddle:gpu-noavx -f paddle/scripts/docker/Dockerfile.gpu .
22+
docker build -t paddle:cpu -f paddle/scripts/docker/Dockerfile .
23+
docker build -t paddle:gpu -f paddle/scripts/docker/Dockerfile.gpu .
2424
2525
2626
To run the CPU-only image as an interactive container:
@@ -81,3 +81,25 @@ source code:
8181
cd Paddle
8282
docker build --build-arg WITH_AVX=OFF -t paddle:cpu-noavx -f paddle/scripts/docker/Dockerfile .
8383
docker build --build-arg WITH_AVX=OFF -t paddle:gpu-noavx -f paddle/scripts/docker/Dockerfile.gpu .
84+
85+
86+
Documentation
87+
-------------
88+
89+
Paddle Docker images include an HTML version of C++ source code
90+
generated using `woboq code browser
91+
<https://github.com/woboq/woboq_codebrowser>`_. This makes it easy
92+
for users to browse and understand the C++ source code.
93+
94+
As long as we give the Paddle Docker container a name, we can run an
95+
additional nginx Docker container to serve the volume from the Paddle
96+
container:
97+
98+
.. code-block:: bash
99+
100+
docker run -d --name paddle-cpu-doc paddle:cpu
101+
docker run -d --volumes-from paddle-cpu-doc -p 8088:80 nginx
102+
103+
104+
Then we can direct our Web browser to the HTML version of source code
105+
at http://localhost:8088/paddle/

paddle/api/test/run_tests.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ popd > /dev/null
2020

2121
cd $SCRIPTPATH
2222

23-
if [ ! -f ../../dist/*.whl ] ; then # Swig not compiled.
24-
exit 0
25-
fi
26-
27-
rm .test_env -rf
23+
rm -rf .test_env
2824
virtualenv .test_env
2925
source .test_env/bin/activate
3026

paddle/cuda/include/hl_matrix_type.cuh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
1313
limitations under the License. */
1414

15-
1615
#ifndef HL_MATRIX_TYPE_CUH_
1716
#define HL_MATRIX_TYPE_CUH_
1817

1918
#include "hl_base.h"
2019

2120
#ifdef __CUDA_ARCH__
22-
// typedef void* vecType;
2321
#include <vector_types.h>
2422
#ifndef PADDLE_TYPE_DOUBLE
2523
typedef float4 vecType;
@@ -37,4 +35,10 @@ typedef __m128d vecType;
3735
#endif
3836
#endif
3937

40-
#endif /* HL_MATRIX_TYPE_CUH_ */
38+
#ifdef __CUDA_ARCH__
39+
#define INLINE __device__ inline
40+
#else
41+
#define INLINE inline
42+
#endif
43+
44+
#endif // HL_MATRIX_TYPE_CUH_

0 commit comments

Comments
 (0)