Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backends/mlu/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function(py_test_modules TARGET_NAME)
add_test(
NAME ${TARGET_NAME}
COMMAND
${CMAKE_COMMAND} -E env
${CMAKE_COMMAND} -E env FLAGS_use_stream_safe_cuda_allocator=false
CUSTOM_DEVICE_ROOT=${CMAKE_BINARY_DIR}/python/paddle_custom_device/
PYTHONPATH=${PYTHON_SOURCE_DIR}:${PYTHON_SOURCE_DIR}/tests:$ENV{PYTHONPATH}
${py_test_modules_ENVS} python ${PYTHON_SOURCE_DIR}/tools/test_runner.py
Expand All @@ -37,7 +37,7 @@ endfunction()
add_test(
NAME test_LeNet_MNIST
COMMAND
${CMAKE_COMMAND} -E env
${CMAKE_COMMAND} -E env FLAGS_use_stream_safe_cuda_allocator=false
CUSTOM_DEVICE_ROOT=${CMAKE_BINARY_DIR}/python/paddle_custom_device/
PYTHONPATH=${PYTHON_SOURCE_DIR}:${PYTHON_SOURCE_DIR}/tests:$ENV{PYTHONPATH}
python test_LeNet_MNIST.py
Expand Down
6 changes: 5 additions & 1 deletion backends/mlu/tests/unittests/test_multinomial_op_mlu.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ def test_static(self):
train_program = base.Program()
with base.program_guard(train_program, startup_program):
x = paddle.static.data("x", shape=[4], dtype="float32")
out = paddle.multinomial(x, num_samples=100000, replacement=True)
outs = [
paddle.multinomial(x, num_samples=100000, replacement=True)
for _ in range(10)
]
out = paddle.concat(outs, axis=0)

place = base.CustomPlace("mlu", 0)
exe = base.Executor(place)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ ENV FLAGS_use_stride_kernel=0
ENV FLAGS_allocator_strategy=auto_growth
ENV CNCL_MEM_POOL_MULTI_CLIQUE_ENABLE=1
ENV PADDLE_XCCL_BACKEND=mlu
ENV FLAGS_use_stream_safe_cuda_allocator=false

# yum and pip clean
RUN yum clean all && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ ENV FLAGS_use_stride_kernel=0
ENV FLAGS_allocator_strategy=auto_growth
ENV CNCL_MEM_POOL_MULTI_CLIQUE_ENABLE=1
ENV PADDLE_XCCL_BACKEND=mlu
ENV FLAGS_use_stream_safe_cuda_allocator=false

# Clean
RUN apt-get clean -y
Expand Down
1 change: 1 addition & 0 deletions backends/npu/tools/pr_ci_npu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export CODE_ROOT

# For paddle easy debugging
export FLAGS_call_stack_level=2
export FLAGS_enable_pir_api=1

failed_test_lists=''
tmp_dir=`mktemp -d`
Expand Down