sgd raises an exception Xbyak::Error, offset is too big
Created by: zhangting2020
- Compile Paddle from Source Code
cmake .. -DPY_VERSION=2.7 -DWITH_GPU=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
- When the code below is run,there is an exception:
import paddle.fluid as fluid
import paddle.fluid.compiler as compiler
data = fluid.layers.fill_constant(shape=[1], value=128, dtype='int64')
label = fluid.layers.fill_constant(shape=[1, 150], value=0.5, dtype='float32')
emb = fluid.embedding(input=data, size=(10000000, 150), dtype='float32')
out = fluid.layers.l2_normalize(x=emb, axis=-1)
cost = fluid.layers.square_error_cost(input=out, label=label)
avg_cost = fluid.layers.mean(cost)
sgd_optimizer = fluid.optimizer.SGD(learning_rate=0.001)
sgd_optimizer.minimize(avg_cost)
place = fluid.CPUPlace()
exe = fluid.Executor(place)
exe.run(fluid.default_startup_program())
compiled_prog = compiler.CompiledProgram(fluid.default_main_program())
result = exe.run(compiled_prog, fetch_list=[avg_cost])
W0225 10:00:02.147568 11763 operator.cc:187] sgd raises an exception Xbyak::Error, offset is too big
F0225 10:00:02.147701 11763 exception_holder.h:37] std::exception caught, offset is too big
*** Check failure stack trace: ***
@ 0x7facd362aaed google::LogMessage::Fail()
@ 0x7facd362ce38 google::LogMessage::SendToLog()
@ 0x7facd362a5fb google::LogMessage::Flush()
@ 0x7facd362dd0e google::LogMessageFatal::~LogMessageFatal()
@ 0x7facd5a79e9b paddle::framework::details::ExceptionHolder::Catch()
@ 0x7facd5b5409b paddle::framework::details::FastThreadedSSAGraphExecutor::RunOpSync()
@ 0x7facd5b4f232 paddle::framework::details::FastThreadedSSAGraphExecutor::RunOp()
@ 0x7facd5b5121d _ZNSt17_Function_handlerIFSt10unique_ptrINSt13__future_base12_Result_baseENS2_8_DeleterEEvENS1_12_Task_setterIS0_INS1_7_ResultIvEES3_ESt12_Bind_simpleIFSt17reference_wrapperISt5_BindIFZN6paddle9framework7details28FastThreadedSSAGraphExecutor10RunOpAsyncEPSt13unordered_mapIPNSF_12OpHandleBaseESt6atomicIiESt4hashISJ_ESt8equal_toISJ_ESaISt4pairIKSJ_SL_EEESJ_RKSt10shared_ptrINSE_13BlockingQueueImEEEEUlvE_vEEEvEEvEEE9_M_invokeERKSt9_Any_data
@ 0x7facd3450cee std::__future_base::_State_baseV2::_M_do_set()
@ 0x7fad28792a99 __pthread_once_slow
@ 0x7facd5b4da4d _ZNSt17_Function_handlerIFvvEZN10ThreadPool7enqueueIZN6paddle9framework7details28FastThreadedSSAGraphExecutor10RunOpAsyncEPSt13unordered_mapIPNS5_12OpHandleBaseESt6atomicIiESt4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_SB_EEES9_RKSt10shared_ptrINS4_13BlockingQueueImEEEEUlvE_JEEESt6futureINSt9result_ofIFT_DpT0_EE4typeEEOSV_DpOSW_EUlvE_E9_M_invokeERKSt9_Any_data
@ 0x7facd34531e4 _ZNSt6thread5_ImplISt12_Bind_simpleIFZN10ThreadPoolC4EmEUlvE_vEEE6_M_runEv
@ 0x7face6a33c80 (unknown)
@ 0x7fad2878b6ba start_thread
@ 0x7fad284c141d clone
@ (nil) (unknown)
Aborted (core dumped)
- If I compile Paddle with the command below, the code can run successfully
cmake .. -DPY_VERSION=2.7 -DWITH_GPU=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DWITH_XBYAK=OFF