Fix(mluOpFocalLossSigmoidBackward): fix unknown address space warning #1156
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Please describe your motivation and the goal you want to achieve through this pull request.
Modification
kernels/focal_loss_sigmoid/focal_loss_sigmoid_backward_union1.mlu
Test Report
修改前:
[ 50%] Building CNCC object CMakeFiles/mluops.dir/kernels/focal_loss_sigmoid/mluops_generated_focal_loss_sigmoid_backward_union1.mlu.o
[ 54%] Built target pb2prototxt
[ 56%] Built target prototxt2pb
[ 92%] Built target mluop_pb_gtest_obj
warning: unknown address space, please use addrspace-specified load/store functions.
for example: __load_nram.
warning: unknown address space, please use addrspace-specified load/store functions.
for example: __load_nram.
Consolidate compiler generated dependencies of target mluops
[ 93%] Linking CXX shared library lib/libmluops.so
[ 97%] Built target mluops
[100%] Linking CXX executable ../test/mluop_gtest
[100%] Linking CXX executable ../test/mluop_api_gtest
[100%] Built target mluop_api_gtest
[100%] Built target mluop_gtest
修改后无warning:
[ 50%] Built target mluop_gtest_kernels
[ 50%] Building CNCC object CMakeFiles/mluops.dir/kernels/focal_loss_sigmoid/mluops_generated_focal_loss_sigmoid_backward_union1.mlu.o
[ 60%] Built target pb2prototxt
[ 64%] Built target prototxt2pb
[ 92%] Built target mluop_pb_gtest_obj
Consolidate compiler generated dependencies of target mluops
[ 93%] Linking CXX shared library lib/libmluops.so
[ 97%] Built target mluops
[ 98%] Linking CXX executable ../test/mluop_api_gtest
[100%] Linking CXX executable ../test/mluop_gtest
[100%] Built target mluop_api_gtest
[100%] Built target mluop_gtest