MS-MPI installation failed with error code 50. 5C

A version of MPI that is the same or newer is already installed.
求救啊!!!上面这个问题如何解决!!已经快疯了!!!

是需要如何删除注册表么?

1个回答

提示你已经安装了mpi,你是不是安装了高版本的visual studio,它自带了一个mpi?

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
linux安装octopus:configure: error: could not find required LAPACK library如何排错
我在linux安装octopus时,在configure这一步系统提示找不到required LAPACK library。但是我的LAPACK确实安装了,路径也是正确的,我自己可以在路径下找到。为什么系统找不到呢? 我的configure命令: ``` $ ./configure --prefix=/home/hp/softwares/octopus-8.4 --with-lapack=/home/hp/softwares/octopus-8.4/lapack-3.8.0--with-libxc-prefix=/home/hp/softwares/lib--with-gsl-prefix=/home/hp/softwares/lib--with-fftw-prefix=/home/hp/softwares/lib--with-blas=/home/hp/softwares/lib--enable-mpi=/home/hp/softwares/lib ``` config.log文件里的错误部分: ``` configure:11535: gfortran -o conftest -I /usr/include -pipe -O3 -funroll-loops -ffast-math -ffree-line-length-none conftest.f90 -lxc >&5 configure:11535: $? = 0 configure:11542: result: yes (-I /usr/include -lxc) configure:11553: checking whether libxc version is 3.0 configure:11555: result: no configure:11558: checking whether libxc version is >= 4.0 configure:11560: result: no configure:11576: checking whether libxc has support for hybrid meta-GGAs (>= v 2.1) configure:11588: gfortran -o conftest -I /usr/include -pipe -O3 -funroll-loops -ffast-math -ffree-line-length-none conftest.f90 -lxc >&5 configure:11588: $? = 0 configure:11594: result: yes configure:11641: checking for sgemm in basedir/lib/libblas.a configure:11648: gfortran -o conftest -pipe -O3 -funroll-loops -ffast-math -ffree-line-length-none conftest.f90 basedir/lib/libblas.a >&5 configure:11648: $? = 0 configure:11657: result: yes (basedir/lib/libblas.a) configure:12187: checking whether zdotc works configure:12230: gfortran -o conftest -pipe -O3 -funroll-loops -ffast-math -ffree-line-length-none conftest.f90 basedir/lib/libblas.a >&5 configure:12230: $? = 0 configure:12230: ./conftest configure:12230: $? = 0 configure:12248: result: yes configure:12294: checking for cheev in /home/hp/softwares/octopus-8.4/lapack-3.8.0--with-libxc-prefix=/home/hp/softwares/lib--with-gsl-prefix=/home/hp/softwares/lib--with-fftw-prefix=/home/hp/softwares/lib--with-blas=/home/hp/softwares/lib--enable-mpi=/home/hp/softwares/lib configure:12301: gfortran -o conftest -pipe -O3 -funroll-loops -ffast-math -ffree-line-length-none conftest.f90 /home/hp/softwares/octopus-8.4/lapack-3.8.0--with-libxc-prefix=/home/hp/softwares/lib--with-gsl-prefix=/home/hp/softwares/lib--with-fftw-prefix=/home/hp/softwares/lib--with-blas=/home/hp/softwares/lib--enable-mpi=/home/hp/softwares/lib basedir/lib/libblas.a >&5 gfortran: error: /home/hp/softwares/octopus-8.4/lapack-3.8.0--with-libxc-prefix=/home/hp/softwares/lib--with-gsl-prefix=/home/hp/softwares/lib--with-fftw-prefix=/home/hp/softwares/lib--with-blas=/home/hp/softwares/lib--enable-mpi=/home/hp/softwares/lib: No such file or directory configure:12301: $? = 1 configure: failed program was: | program main | call cheev | end configure:12307: result: no configure:12318: checking for cheev in -lmkl_lapack configure:12330: gfortran -o conftest -pipe -O3 -funroll-loops -ffast-math -ffree-line-length-none conftest.f90 -lmkl_lapack /home/hp/softwares/octopus-8.4/lapack-3.8.0--with-libxc-prefix=/home/hp/softwares/lib--with-gsl-prefix=/home/hp/softwares/lib--with-fftw-prefix=/home/hp/softwares/lib--with-blas=/home/hp/softwares/lib--enable-mpi=/home/hp/softwares/lib basedir/lib/libblas.a >&5 gfortran: error: /home/hp/softwares/octopus-8.4/lapack-3.8.0--with-libxc-prefix=/home/hp/softwares/lib--with-gsl-prefix=/home/hp/softwares/lib--with-fftw-prefix=/home/hp/softwares/lib--with-blas=/home/hp/softwares/lib--enable-mpi=/home/hp/softwares/lib: No such file or directory configure:12330: $? = 1 configure: failed program was: | program main | call cheev | end configure:12340: result: no configure:12318: checking for cheev in -llapack configure:12330: gfortran -o conftest -pipe -O3 -funroll-loops -ffast-math -ffree-line-length-none conftest.f90 -llapack /home/hp/softwares/octopus-8.4/lapack-3.8.0--with-libxc-prefix=/home/hp/softwares/lib--with-gsl-prefix=/home/hp/softwares/lib--with-fftw-prefix=/home/hp/softwares/lib--with-blas=/home/hp/softwares/lib--enable-mpi=/home/hp/softwares/lib basedir/lib/libblas.a >&5 gfortran: error: /home/hp/softwares/octopus-8.4/lapack-3.8.0--with-libxc-prefix=/home/hp/softwares/lib--with-gsl-prefix=/home/hp/softwares/lib--with-fftw-prefix=/home/hp/softwares/lib--with-blas=/home/hp/softwares/lib--enable-mpi=/home/hp/softwares/lib: No such file or directory configure:12330: $? = 1 configure: failed program was: | program main | call cheev | end configure:12340: result: no configure:12318: checking for cheev in -llapack_rs6k configure:12330: gfortran -o conftest -pipe -O3 -funroll-loops -ffast-math -ffree-line-length-none conftest.f90 -llapack_rs6k /home/hp/softwares/octopus-8.4/lapack-3.8.0--with-libxc-prefix=/home/hp/softwares/lib--with-gsl-prefix=/home/hp/softwares/lib--with-fftw-prefix=/home/hp/softwares/lib--with-blas=/home/hp/softwares/lib--enable-mpi=/home/hp/softwares/lib basedir/lib/libblas.a >&5 gfortran: error: /home/hp/softwares/octopus-8.4/lapack-3.8.0--with-libxc-prefix=/home/hp/softwares/lib--with-gsl-prefix=/home/hp/softwares/lib--with-fftw-prefix=/home/hp/softwares/lib--with-blas=/home/hp/softwares/lib--enable-mpi=/home/hp/softwares/lib: No such file or directory configure:12330: $? = 1 configure: failed program was: | program main | call cheev | end configure:12340: result: no configure:12318: checking for cheev in -lacml configure:12330: gfortran -o conftest -pipe -O3 -funroll-loops -ffast-math -ffree-line-length-none conftest.f90 -lacml /home/hp/softwares/octopus-8.4/lapack-3.8.0--with-libxc-prefix=/home/hp/softwares/lib--with-gsl-prefix=/home/hp/softwares/lib--with-fftw-prefix=/home/hp/softwares/lib--with-blas=/home/hp/softwares/lib--enable-mpi=/home/hp/softwares/lib basedir/lib/libblas.a >&5 gfortran: error: /home/hp/softwares/octopus-8.4/lapack-3.8.0--with-libxc-prefix=/home/hp/softwares/lib--with-gsl-prefix=/home/hp/softwares/lib--with-fftw-prefix=/home/hp/softwares/lib--with-blas=/home/hp/softwares/lib--enable-mpi=/home/hp/softwares/lib: No such file or directory configure:12330: $? = 1 configure: failed program was: | program main | call cheev | end configure:12340: result: no configure:12358: error: could not find required LAPACK library ``` 万分感谢!
mpi在多节点上的运行问题
我安转的是openmpi,用mpirun在两个节点上运行的时候出现如下错误,求助是什么原因。 shell$: /usr/local/openmpi/bin/mpiexec -np 2 --hostfile nodeinfo ./test 错误提示: Primary job terminated normally, but 1 process returned a non-zero exit code.. Per user-direction, the job has been aborted. ------------------------------------------------------- ./test: error while loading shared libraries: libcudart.so.9.0: cannot open shared object file: No such file or directory ./test: error while loading shared libraries: libcudart.so.9.0: cannot open shared object file: No such file or directory -------------------------------------------------------------------------- mpiexec detected that one or more processes exited with non-zero status, thus causing the job to be terminated. The first process to do so was: Process name: [[65150,1],0] Exit code: 127 ----------------------
CentOS 7编译Fortran并行程序无法找到“mpi_XXX”函数,如何解决?
最近在CentOS 7上编译流体力学计算软件cfl3d,编译过程中提示未找到函数错误: ``` #采用ifort编译 ifort -DDIST_MPI -DDBLE_PRECSN -DP3D_SINGLE -DLINUX -DINTEL -DNOREDIRECT -DDBLE_PRECSN -z muldefs -xHost -tracebace -fpe0 -o cfl3d_mpi *.o ae_corr.o: In function 'ae_corr_': ae_corr.F:(.text+0x4d1): undefined reference to 'mpi_send_' ...#下面还有好多相似的报错,都是缺少'mpi_XXX_'函数 ``` 系统内安装了Intel Parallel Studio XE Cluster Edition 2019,软件安装没有问题。 通过之前在网上搜索相关问题,给出的答案都是找到链接函数库并加在编译语句后,但是我并不能找到Parallel Studio在我系统内安装的mpi函数库目录(或者说我不知道这个库目录是什么)。 曾经尝试在Parallel Studio安装路径搜索“mpisend”只找到了一个名为“MPI_Send.3.gz”的文件,所在目录为“.../intel/compilers_and_libraries_2019.4.243/linux/mpi/man/man3” 求问这个目录与所报错误是否有关系
关于mpi集群的,在mpirun -np 6 -f nodes ./cpi 出现这样的错误,图示
![图片说明](https://img-ask.csdn.net/upload/201911/03/1572781618_61027.jpg)
HI3559AV100平台vgs 处理osd HI_MPI_VGS_AddOsdTask 怎么使用
vgs 叠加osd,HI_MPI_VGS_AddOsdTask 这个api怎么使用呢? 参数中 VGS_ADD_OSD_S中,U64PhyAddr osd图像的物理地址,该怎么赋值呢? 使用场景是:在视频中显示图片或文字符号 有没有demo的可供参考
MPI安装cannot open file "mpich.lib"
错误是cannot open file "mpich.lib",可是明明有这个文件
Win7 64位编译boost内存占满卡死
Win7 4g内存 VS2013 64位编译Boost 1_57_0 运行命令bjam.exe stage --toolset=msvc-12.0 --without-graph --without-graph_parallel --without-math --without-mpi --without-serialization --without-wave --without-test --without-program_options --without-serialization --without-signals --stagedir=".\bin\vc12_x86"link=static runtime-link=static threading=multi debug release 内存占满,然后卡死,求解是否是内存不够的问题?
Linux下MPI+OpenMP程序编译运行出错
如题,错误提示如下: [node65:03787] *** Process received signal *** [node65:03787] Signal: Segmentation fault (11) [node65:03787] Signal code: Address not mapped (1) [node65:03787] Failing at address: 0x44000098 [node65:03787] [ 0] /lib64/libpthread.so.0 [0x2aaabc14ac00] [node65:03787] [ 1] /public/share/mpi/openmpi-1.4.5//lib/libmpi.so.0(MPI_Comm_size+0x60) [0x2aaabb398360] [node65:03787] [ 2] fdtd_3D_xyzPML_MPI_OpenMP(main+0xaa) [0x42479a] [node65:03787] [ 3] /lib64/libc.so.6(__libc_start_main+0xf4) [0x2aaabc273184] [node65:03787] [ 4] fdtd_3D_xyzPML_MPI_OpenMP(_ZNSt8ios_base4InitD1Ev+0x39) [0x405d79] [node65:03787] *** End of error message *** [node65:03788] *** Process received signal *** [node65:03788] Signal: Segmentation fault (11) [node65:03788] Signal code: Address not mapped (1) [node65:03788] Failing at address: 0x44000098 [node65:03788] [ 0] /lib64/libpthread.so.0 [0x2b663e446c00] [node65:03788] [ 1] /public/share/mpi/openmpi-1.4.5//lib/libmpi.so.0(MPI_Comm_size+0x60) [0x2b663d694360] [node65:03788] [ 2] fdtd_3D_xyzPML_MPI_OpenMP(main+0xaa) [0x42479a] [node65:03788] [ 3] /lib64/libc.so.6(__libc_start_main+0xf4) [0x2b663e56f184] [node65:03788] [ 4] fdtd_3D_xyzPML_MPI_OpenMP(_ZNSt8ios_base4InitD1Ev+0x39)[0x405d79] [node65:03788] *** End of error message *** ----------------------------------------------------------------------------------- mpirun noticed that process rank 2 with PID 3787 on node node65 exited on signal 11 (Segmentation fault). ----------------------------------------------------------------------------------- 请问各位大侠,这时什么原因引起的啊?急求!!! 我利用gdb调试编译产生的core文件,提示如下: Starting program: /public/home/xx355/data/fdtd_3D_xyzPML_MPI_OpenMP [Thread debugging using libthread_db enabled] [New Thread 47032965403440 (LWP 19821)] [New Thread 1075841344 (LWP 19825)] [New Thread 1077942592 (LWP 19826)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 47032965403440 (LWP 19821)] 0x00002ac6b5ecd360 in PMPI_Comm_size () from /public/share/mpi/openmpi-1.4.5//lib/libmpi.so.0 请大家给予帮助,谢谢、、、
HI3518ev300 HI_MPI_VPSS_SetExtChnAttr 失败 0xA0078003,报错参数设置无
``` /******************************************************************************* *@ Description :配置VPSS的扩展通道 *@ Input :<vpssGrp>:组号 <vpssChn>:扩展通道号 <bindChn>:绑定到目标物理通道号 <width>:扩展通道图片的宽 <height>:扩展通道图片的高 <frmRate>扩展通道图片的帧率 *@ Output : *@ Return :成功:0 失败:错误码 *@ attention :该接口在H3518ev300(hi3516ev200)的SDK中设置不正常 *******************************************************************************/ static int vpss_config_ext_chn(VPSS_GRP vpssGrp, VPSS_CHN vpssChn, VPSS_CHN bindChn, int width, int height, int frmRate) { int ret; VPSS_EXT_CHN_ATTR_S extAttr = {0}; /*---#------------------------------------------------------------*/ printf("----ExtChnAttr:-----------------------------------------\n"); printf("extAttr.s32BindChn = %d\n",extAttr.s32BindChn); printf("extAttr.u32Width = %d\n",extAttr.u32Width); printf("extAttr.u32Height = %d\n",extAttr.u32Height); printf("extAttr.enVideoFormat = %d\n",extAttr.enVideoFormat); printf("extAttr.enPixelFormat = %d\n",extAttr.enPixelFormat); printf("extAttr.enDynamicRange = %d\n",extAttr.enDynamicRange); printf("extAttr.enCompressMode = %d\n",extAttr.enCompressMode); printf("extAttr.u32Depth = %d\n",extAttr.u32Depth); printf("extAttr.stFrameRate.s32SrcFrameRate = %d\n",extAttr.stFrameRate.s32SrcFrameRate); printf("extAttr.stFrameRate.s32DstFrameRate = %d\n",extAttr.stFrameRate.s32DstFrameRate); printf("-------------------------------------------------------\n"); /*---#------------------------------------------------------------*/ extAttr.s32BindChn = bindChn; extAttr.u32Width = width;//960; extAttr.u32Height = height;//540; extAttr.enVideoFormat = VIDEO_FORMAT_LINEAR; extAttr.enPixelFormat = PIXEL_FORMAT_YUV_SEMIPLANAR_420; extAttr.enDynamicRange = DYNAMIC_RANGE_SDR8; extAttr.enCompressMode = COMPRESS_MODE_NONE; extAttr.u32Depth = 0; extAttr.stFrameRate.s32SrcFrameRate = 15; extAttr.stFrameRate.s32DstFrameRate = frmRate; ret = HI_MPI_VPSS_SetExtChnAttr(vpssGrp, vpssChn, &extAttr); if (HI_SUCCESS != ret) { ERROR_LOG("HI_MPI_VPSS_SetExtChnAttr(%d, %d) fail: %#x!\n", vpssGrp, vpssChn, ret); return HLE_RET_ERROR; } ret = HI_MPI_VPSS_EnableChn(vpssGrp, vpssChn); if (HI_SUCCESS != ret) { ERROR_LOG("HI_MPI_VPSS_EnableChn(%d, %d) fail: %#x!\n", vpssGrp, vpssChn, ret); return HLE_RET_ERROR; } return HLE_RET_OK; } ``` ![图片说明](https://img-ask.csdn.net/upload/201909/29/1569723865_767347.jpg) 实现代码如上所述,VPSS 物理通道号是0,已经创建并使能, 扩展通道5绑定到物理通道0,总是报参数设置无效,怎么回事???
MPI并行计算时报错“由于目标计算机积极拒绝,无法连接”,此种情况是什么原因,怎么解决呢?
我在做优化设计时,优化程序经其他人测试没有问题,可以并行计算。但是在去哦自己电脑上运行时总是出现错误,我是使用.bat控制MPI并行计算的,.bat文件和运行报错截面如下: ![图片说明](https://img-ask.csdn.net/upload/201911/05/1572919953_575300.png)![图片说明](https://img-ask.csdn.net/upload/201911/05/1572920000_218929.png) 在尝试过网上相应的解决方法后依然无效,比如尝试打开MPICH2 Process Manager, Argonne National Lab 服务,但是发现服务一直是开启状态,开启服务业无法运行。 MPI安装好后用安装位置自带的测试程序对MPI进行了测试,发现MPI没有问题。 求各位大神指导,是什么原因导致此现象的,该怎么解决这个问题呢
MPI Maelstrom
Description BIT has recently taken delivery of their new supercomputer, a 32 processor Apollo Odyssey distributed shared memory machine with a hierarchical communication subsystem. Valentine McKee's research advisor, Jack Swigert, has asked her to benchmark the new system. ``Since the Apollo is a distributed shared memory machine, memory access and communication times are not uniform,'' Valentine told Swigert. ``Communication is fast between processors that share the same memory subsystem, but it is slower between processors that are not on the same subsystem. Communication between the Apollo and machines in our lab is slower yet.'' ``How is Apollo's port of the Message Passing Interface (MPI) working out?'' Swigert asked. ``Not so well,'' Valentine replied. ``To do a broadcast of a message from one processor to all the other n-1 processors, they just do a sequence of n-1 sends. That really serializes things and kills the performance.'' ``Is there anything you can do to fix that?'' ``Yes,'' smiled Valentine. ``There is. Once the first processor has sent the message to another, those two can then send messages to two other hosts at the same time. Then there will be four hosts that can send, and so on.'' ``Ah, so you can do the broadcast as a binary tree!'' ``Not really a binary tree -- there are some particular features of our network that we should exploit. The interface cards we have allow each processor to simultaneously send messages to any number of the other processors connected to it. However, the messages don't necessarily arrive at the destinations at the same time -- there is a communication cost involved. In general, we need to take into account the communication costs for each link in our network topologies and plan accordingly to minimize the total time required to do a broadcast.'' Input The input will describe the topology of a network connecting n processors. The first line of the input will be n, the number of processors, such that 1 <= n <= 100. The rest of the input defines an adjacency matrix, A. The adjacency matrix is square and of size n x n. Each of its entries will be either an integer or the character x. The value of A(i,j) indicates the expense of sending a message directly from node i to node j. A value of x for A(i,j) indicates that a message cannot be sent directly from node i to node j. Note that for a node to send a message to itself does not require network communication, so A(i,i) = 0 for 1 <= i <= n. Also, you may assume that the network is undirected (messages can go in either direction with equal overhead), so that A(i,j) = A(j,i). Thus only the entries on the (strictly) lower triangular portion of A will be supplied. The input to your program will be the lower triangular section of A. That is, the second line of input will contain one entry, A(2,1). The next line will contain two entries, A(3,1) and A(3,2), and so on. Output Your program should output the minimum communication time required to broadcast a message from the first processor to all the other processors. Sample Input 5 50 30 5 100 20 50 10 x x 10 Sample Output 35
MPI_Init: Can't read plugin directory
在集群上传MPI程序任务报错,但在ssh界面上运行正常。 报错: wemcsim_mpi: MPI_Init: Can't read plugin directory /public/software/mpi/openmpi1.4.1gnu/lib/linux_amd64/plugins wemcsim_mpi: MPI_Init: No plugins will be available wemcsim_mpi: MPI_Init: Can't read plugin directory 提交任务: #PBS -N csg01 #PBS -q high #PBS -o ./example_2D.output #PBS -e ./example_2D.err #PBS -l nodes=1:ppn=4 /public/software/mpi/openmpi1.4.1gnu/bin/mpirun -np 4 -hostfile $PBS_NODEFILE xx/wemcsim_mpi 执行文件 xx/example_2D.lua 输入文档 ``` ```
安装 tensorflow cpu 版出问题, 求解决办法。 谢谢
安装 tensorflow cpu 版出问题, 求解决办法。 谢谢 Windows 10 64bits, anaconda-3.4.2(Python3.5.2), tensorflow version 1.11-0, 第一次运行时报错: ImportError: DLL load failed: 动态链接库(DLL)初始化例程失败。 Environment parameter path: C:\Program Files\Microsoft MPI\Bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\CUDA\bin64;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet\;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\lib\x64;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\extras\CUPTI\libx64;C:\Program Files\Microsoft VS Code;C:\Program Files\Anaconda3;C:\Program Files\Anaconda3\Scripts;C:\Program Files\Anaconda3\Library\bin; MSVCP140.DLL在以下2个目录 C:\Program Files\Anaconda3 C:\Program Files\Anaconda3\Library\bin C:\Windows\system32>python Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> C:\Windows\system32>pip install tensorflow Collecting tensorflow Using cached https://files.pythonhosted.org/packages/af/5b/695e2e66feb27742a78f938d8369cc874b5fc7082193c3352c9db599af01/tensorflow-1.11.0-cp35-cp35m-win_amd64.whl Requirement already satisfied: grpcio>=1.8.6 in c:\program files\anaconda3\lib\site-packages (from tensorflow) (1.16.0) Requirement already satisfied: astor>=0.6.0 in c:\program files\anaconda3\lib\site-packages (from tensorflow) (0.7.1) Requirement already satisfied: numpy>=1.13.3 in c:\program files\anaconda3\lib\site-packages (from tensorflow) (1.15.3) Requirement already satisfied: keras-applications>=1.0.5 in c:\program files\anaconda3\lib\site-packages (from tensorflow) (1.0.6) Requirement already satisfied: absl-py>=0.1.6 in c:\program files\anaconda3\lib\site-packages (from tensorflow) (0.6.1) Requirement already satisfied: six>=1.10.0 in c:\program files\anaconda3\lib\site-packages (from tensorflow) (1.10.0) Requirement already satisfied: setuptools<=39.1.0 in c:\program files\anaconda3\lib\site-packages\setuptools-27.2.0-py3.5.egg (from tensorflow) (27.2.0) Requirement already satisfied: protobuf>=3.6.0 in c:\program files\anaconda3\lib\site-packages (from tensorflow) (3.6.1) Requirement already satisfied: keras-preprocessing>=1.0.3 in c:\program files\anaconda3\lib\site-packages (from tensorflow) (1.0.5) Requirement already satisfied: termcolor>=1.1.0 in c:\program files\anaconda3\lib\site-packages (from tensorflow) (1.1.0) Requirement already satisfied: gast>=0.2.0 in c:\program files\anaconda3\lib\site-packages (from tensorflow) (0.2.0) Requirement already satisfied: wheel>=0.26 in c:\program files\anaconda3\lib\site-packages (from tensorflow) (0.29.0) Requirement already satisfied: tensorboard<1.12.0,>=1.11.0 in c:\program files\anaconda3\lib\site-packages (from tensorflow) (1.11.0) Requirement already satisfied: h5py in c:\program files\anaconda3\lib\site-packages (from keras-applications>=1.0.5->tensorflow) (2.6.0) Requirement already satisfied: markdown>=2.6.8 in c:\program files\anaconda3\lib\site-packages (from tensorboard<1.12.0,>=1.11.0->tensorflow) (3.0.1) Requirement already satisfied: werkzeug>=0.11.10 in c:\program files\anaconda3\lib\site-packages (from tensorboard<1.12.0,>=1.11.0->tensorflow) (0.11.11) Installing collected packages: tensorflow Successfully installed tensorflow-1.11.0 错误信息: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module>() 57 ---> 58 from tensorflow.python.pywrap_tensorflow_internal import * 59 from tensorflow.python.pywrap_tensorflow_internal import __version__ C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in <module>() 27 return _mod ---> 28 _pywrap_tensorflow_internal = swig_import_helper() 29 del swig_import_helper C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper() 23 try: ---> 24 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) 25 finally: C:\Program Files\Anaconda3\lib\imp.py in load_module(name, file, filename, details) 241 else: --> 242 return load_dynamic(name, filename, file) 243 elif type_ == PKG_DIRECTORY: C:\Program Files\Anaconda3\lib\imp.py in load_dynamic(name, path, file) 341 name=name, loader=loader, origin=path) --> 342 return _load(spec) 343 ImportError: DLL load failed: 动态链接库(DLL)初始化例程失败。 During handling of the above exception, another exception occurred: ImportError Traceback (most recent call last) <ipython-input-1-41389fad42b5> in <module>() ----> 1 import tensorflow as tf C:\Program Files\Anaconda3\lib\site-packages\tensorflow\__init__.py in <module>() 20 21 # pylint: disable=g-bad-import-order ---> 22 from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import 23 24 try: C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\__init__.py in <module>() 47 import numpy as np 48 ---> 49 from tensorflow.python import pywrap_tensorflow 50 51 # Protocol buffers C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module>() 72 for some common reasons and solutions. Include the entire stack trace 73 above this error message when asking for help.""" % traceback.format_exc() ---> 74 raise ImportError(msg) 75 76 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long ImportError: Traceback (most recent call last): File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module> from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module> _pywrap_tensorflow_internal = swig_import_helper() File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "C:\Program Files\Anaconda3\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\Program Files\Anaconda3\lib\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed: 动态链接库(DLL)初始化例程失败。 Failed to load the native TensorFlow runtime. See https://www.tensorflow.org/install/install_sources#common_installation_problems for some common reasons and solutions. Include the entire stack trace above this error message when asking for help.
mpi配置问题显示mpi. h有语法错误
vs2010+mpi10+win0 64,按照网上的方法进行了配置,现在编译的时候会显示mpi.h有语法错误,有没有大神可以解答
Cygwin mpi 代码运行报错,请问是安装时少选择了文件吗?
![图片说明](https://img-ask.csdn.net/upload/201908/26/1566819029_585411.png) Cygwin mpi 代码运行报错,请问是安装时少选择了文件吗? Fortran90代码如下: PROGRAM TUTE2Q1 IMPLICIT NONE INCLUDE 'mpif.h' ! Variable declartion INTEGER :: i,pid,nprocs,ierr CALL MPI_INIT(ierr) ! Initialize MPI Program CALL MPI_COMM_SIZE(MPI_COMM_WORLD,nprocs,ierr) ! Get Size of Communicator (Number of procs) CALL MPI_COMM_RANK(MPI_COMM_WORLD,pid,ierr) ! Get Rank of Communicator (proc id) ! If root write header IF (pid.EQ.0) THEN WRITE(*,1100) "N Procs","PID","Message" ENDIF ! Synchronize CALL MPI_BARRIER(MPI_COMM_WORLD,ierr) ! Write out sequentially DO i = 0,nprocs-1 IF (pid.EQ.i) THEN ! Write out data WRITE(*,1200) nprocs,pid,"Hello World" ENDIF ! Synchronize CALL MPI_BARRIER(MPI_COMM_WORLD,ierr) ENDDO 1100 FORMAT(3(A12,1x)) 1200 FORMAT(2(I12.1,1x),A12) ! Finalize MPI program CALL MPI_FINALIZE(ierr) END PROGRAM TUTE2Q1
MPI写的一个找寻数组最大值的问题,一直出错
#include<stdio.h> #include<stdlib.h> #include <mpi.h> int main(int argc,char **argv) { int N; int *array; int i=0; int max_mpi=0,min_mpi; int maxx=0,minn=99999999; int rank,size; MPI_Status status; MPI_Comm comm=MPI_COMM_WORLD; MPI_Init(&argc,&argv); MPI_Comm_size(comm,&size); MPI_Comm_rank(comm,&rank); if(rank==0) { printf("please input the N :\n"); scanf("%d",&N); array=(int*)malloc(sizeof(int)*N); for(i=0;i<N;i++) { array[i]=0; array[i]=rand()%100000; } for(i=1;i<size;i++) { MPI_Send(&N,1,MPI_INT,i,97,comm); MPI_Send(&array,N,MPI_INT,i,97,comm); } for(i=1;i<size;i++) { MPI_Recv(&maxx,1,MPI_INT,i,96,comm,&status); MPI_Recv(&minn,1,MPI_INT,i,96,comm,&status); if(max_mpi<maxx) max_mpi=maxx; if(min_mpi>minn) min_mpi=minn; } printf("❤❤❤❤❤❤❤❤❤❤❤❤❤\n"); printf("The maximum value of the array is(by t he mpi): %d \n",max_mpi); printf("The minimum value of the array is(by the mpi): %d \n",min_mpi); printf("❤❤❤❤❤❤❤❤❤❤❤❤❤\n"); } else { int local_N; MPI_Recv(&local_N,1,MPI_INT,0,97,comm,&status); int *local_array; local_array=(int*)malloc(sizeof(int)*local_N); MPI_Recv(&local_array,N,MPI_INT,0,97,comm,&status); int beg,end; beg=(rank-1)*(local_N/(size-1)); end=rank*(local_N/(size-1)); for(i=beg;i<=end;i++) { if(maxx<local_array[i]) maxx=local_array[i]; if(minn>local_array[i]) minn=local_array[i]; } printf("in process [%d] maxx is (%d),minn is (%d), begin from %d end in %d\n", rank, maxx,minn, beg,end); MPI_Send(&maxx,1,MPI_INT,0,96,comm); MPI_Send(&minn,1,MPI_INT,0,96,comm); } MPI_Finalize(); } 错误提示如下: Fatal error in PMPI_Recv: Message truncated, error stack: PMPI_Recv(171)....................: MPI_Recv(buf=0x7fff11568950, count=0, MPI_INT, src=0, tag=97, MPI_COMM_WORLD, status=0x7fff11568920) failed MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag 97 truncated; 400 bytes received but buffer size is 0 Fatal error in PMPI_Recv: Message truncated, error stack: PMPI_Recv(171)....................: MPI_Recv(buf=0x7fff44eee630, count=0, MPI_INT, src=0, tag=97, MPI_COMM_WORLD, status=0x7fff44eee600) failed MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag 97 truncated; 400 bytes received but buffer size is 0 Fatal error in PMPI_Recv: Message truncated, error stack: PMPI_Recv(171)....................: MPI_Recv(buf=0x7ffd14d7a450, count=0, MPI_INT, src=0, tag=97, MPI_COMM_WORLD, status=0x7ffd14d7a420) failed MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag 97 truncated; 400 bytes received but buffer size is 0 Fatal error in PMPI_Recv: Message truncated, error stack: PMPI_Recv(171)....................: MPI_Recv(buf=0x7ffc241a4300, count=0, MPI_INT, src=0, tag=97, MPI_COMM_WORLD, status=0x7ffc241a42d0) failed MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag 97 truncated; 400 bytes received but buffer size is 0 Fatal error in PMPI_Recv: Message truncated, error stack: PMPI_Recv(171)....................: MPI_Recv(buf=0x7ffeb1d9ca00, count=0, MPI_INT, src=0, tag=97, MPI_COMM_WORLD, status=0x7ffeb1d9c9d0) failed MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag 97 truncated; 400 bytes received but buffer size is 0 ❤❤❤❤❤❤❤100 Fatal error in PMPI_Recv: Message truncated, error stack: PMPI_Recv(171)....................: MPI_Recv(buf=0x7ffff9b335b0, count=0, MPI_INT, src=0, tag=97, MPI_COMM_WORLD, status=0x7ffff9b33580) failed MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag 97 truncated; 400 bytes received but buffer size is 0 ❤❤❤❤❤❤❤100 Fatal error in PMPI_Recv: Message truncated, error stack: PMPI_Recv(171)....................: MPI_Recv(buf=0x7fff60aa3650, count=0, MPI_INT, src=0, tag=97, MPI_COMM_WORLD, status=0x7fff60aa3620) failed MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag 97 truncated; 400 bytes received but buffer size is 0 ❤❤❤❤❤❤❤100 Fatal error in PMPI_Recv: Message truncated, error stack: PMPI_Recv(171)....................: MPI_Recv(buf=0x7ffcd6bed240, count=0, MPI_INT, src=0, tag=97, MPI_COMM_WORLD, status=0x7ffcd6bed210) failed MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag 97 truncated; 400 bytes received but buffer size is 0 ❤❤❤❤❤❤❤100 Fatal error in PMPI_Recv: Message truncated, error stack: PMPI_Recv(171)....................: MPI_Recv(buf=0x7ffff3192220, count=0, MPI_INT, src=0, tag=97, MPI_COMM_WORLD, status=0x7ffff31921f0) failed MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag 97 truncated; 400 bytes received but buffer size is 0 please input the N : 100 =================================================================================== = BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES = PID 24244 RUNNING AT localhost.localdomain = EXIT CODE: 11 = CLEANING UP REMAINING PROCESSES = YOU CAN IGNORE THE BELOW CLEANUP MESSAGES =================================================================================== YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Segmentation fault (signal 11) This typically refers to a problem with your application. Please see the FAQ page for debugging suggestions
C语言MPI 出现 segmentation fault: 11
Primary job terminated normally, but 1 process returned a non-zero exit code. Per user-direction, the job has been aborted. mpirun noticed that process rank 0 with PID 0 on node dyn-118-139-43-116 exited on signal 11 (Segmentation fault: 11). C语言运行MPI的时候出现的,不知道怎么解决,求大神帮忙瞅瞅。 这个是什么情况呢? ``` #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <string.h> #include "mpi.h" int main(int argc, char** argv) { int iX,iY; const int iXmax = 8000; // default const int iYmax = 8000; // default double Cx, Cy; const double CxMin = -2.5; const double CxMax = 1.5; const double CyMin = -2.0; const double CyMax = 2.0; double PixelWidth = (CxMax - CxMin)/iXmax; double PixelHeight = (CyMax - CyMin)/iYmax; const int MaxColorComponentValue = 255; static unsigned char color[3]; double Zx, Zy; double Zx2, Zy2; /* Zx2 = Zx*Zx; Zy2 = Zy*Zy */ int Iteration; const int IterationMax = 2000; // default const double EscapeRadius = 400; double ER2 = EscapeRadius * EscapeRadius; unsigned char color_array[iYmax*iXmax*3]; //8000*8000*3 array clock_t start, end; double cpu_time_used; int my_rank, processors, rows_per_procs,tag=0; MPI_Status stat; MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &my_rank); MPI_Comm_size(MPI_COMM_WORLD, &processors); if(my_rank == 0){ printf("Computing Mandelbrot Set. Please wait...\n"); } start = clock(); if(my_rank == 0){ rows_per_procs = iYmax / processors; MPI_Bcast(& rows_per_procs, 1, MPI_INT, 0, MPI_COMM_WORLD); } else { int counter = 0; for(iY = rows_per_procs*my_rank; iY < rows_per_procs*(my_rank+1); iY++) { Cy = CyMin + (iY * PixelHeight); if (fabs(Cy) < (PixelHeight / 2)) { Cy = 0.0; /* Main antenna */ } for(iX = 0; iX < iXmax; iX++) { Cx = CxMin + (iX * PixelWidth); /* initial value of orbit = critical point Z= 0 */ Zx = 0.0; Zy = 0.0; Zx2 = Zx * Zx; Zy2 = Zy * Zy; /* */ for(Iteration = 0; Iteration < IterationMax && ((Zx2 + Zy2) < ER2); Iteration++) { Zy = (2 * Zx * Zy) + Cy; Zx = Zx2 - Zy2 + Cx; Zx2 = Zx * Zx; Zy2 = Zy * Zy; }; /* compute pixel color (24 bit = 3 bytes) */ if (Iteration == IterationMax) { // Point within the set. Mark it as black color[0] = 0; color[1] = 0; color[2] = 0; } else { // Point outside the set. Mark it as white double c = 3*log((double)Iteration)/log((double)(IterationMax) - 1.0); if (c < 1) { color[0] = 0; color[1] = 0; color[2] = 255*c; } else if (c < 2) { color[0] = 0; color[1] = 255*(c-1); color[2] = 255; } else { color[0] = 255*(c-2); color[1] = 255; color[2] = 255; } } color_array[counter*iX*3] = color[0]; color_array[counter*iX*3+1] = color[1]; color_array[counter*iX*3+2] = color[2]; } counter++; } } if(my_rank == 0) { //unsigned char color_array[iYmax*iXmax*3]; //8000*8000*3 array FILE * fp; char *filename = "Mandelbrot.ppm"; char *comment = "# "; /* comment should start with # */ fp = fopen(filename, "wb"); /* b - binary mode */ fprintf(fp,"P6\n %s\n %d\n %d\n %d\n", comment, iXmax, iYmax, MaxColorComponentValue); printf("File: %s successfully opened for writing.\n", filename); for(int i = 0; i<processors;i++) { MPI_Recv(color_array, rows_per_procs*iXmax*3,MPI_UNSIGNED_CHAR, i, tag, MPI_COMM_WORLD, &stat); } fwrite(color_array, 1, sizeof(color_array), fp); fclose(fp); printf("Completed Computing Mandelbrot Set.\n"); printf("File: %s successfully closed.\n", filename); } else { MPI_Send(color_array, sizeof(color_array),MPI_UNSIGNED_CHAR, 0, tag, MPI_COMM_WORLD); } // Get the clock current time again // Subtract end from start to get the CPU time used. end = clock(); cpu_time_used = ((double)(end - start)) / CLOCKS_PER_SEC; printf("%dMandelbrot computational process time: %lf\n", my_rank,cpu_time_used); MPI_Finalize(); return 0; } ```
Cygwin下Fortran mpi 代码运行报错,请问是安装时少选择了文件吗?
Cygwin mpi 代码运行报错,请问是安装时少选择了文件吗? Fortran90代码如下: PROGRAM TUTE2Q1 IMPLICIT NONE INCLUDE 'mpif.h' ! Variable declartion INTEGER :: i,pid,nprocs,ierr CALL MPI_INIT(ierr) ! Initialize MPI Program CALL MPI_COMM_SIZE(MPI_COMM_WORLD,nprocs,ierr) ! Get Size of Communicator (Number of procs) CALL MPI_COMM_RANK(MPI_COMM_WORLD,pid,ierr) ! Get Rank of Communicator (proc id) ! If root write header IF (pid.EQ.0) THEN WRITE(*,1100) "N Procs","PID","Message" ENDIF ! Synchronize CALL MPI_BARRIER(MPI_COMM_WORLD,ierr) ! Write out sequentially DO i = 0,nprocs-1 IF (pid.EQ.i) THEN ! Write out data WRITE(*,1200) nprocs,pid,"Hello World" ENDIF ! Synchronize CALL MPI_BARRIER(MPI_COMM_WORLD,ierr) ENDDO 1100 FORMAT(3(A12,1x)) 1200 FORMAT(2(I12.1,1x),A12) ! Finalize MPI program CALL MPI_FINALIZE(ierr) END PROGRAM TUTE2Q1
MPI发送和接收函数,运行时有问题Invalid rank,error stack
![图片说明](https://img-ask.csdn.net/upload/201506/05/1433508677_920841.png) Fatal error in MPI_Send: Invalid rank, error stack: MPI_Irecv(173): MPI_Irecv(buf=0012FF28, count=4, MPI_CHAR, src=1, tag=99, MPI_COMM_WORLD, failed MPI_Send(98): Invalid rank has value 1but must be nonnegative and less than 1 我的主要程序是这样写的: char password[12]; MPI_Status status;//状态信息 if (myid == 0) { //界面 fprintf(stderr,"请输入密码: "); fflush(stderr); while((c=getch())!='\r')//换行符的情况 { if(c!='\b')//退格符情况 { password[i++]=c; printf("*"); //fflush (stderr); } else { --i; system("cls"); //清屏用于显示星号个数 printf("请输入密码: "); for (int j=0;j<i;j++) { printf("*"); } } } password[i] = '\0'; printf("\n"); printf("请按“Y”键破解密码 "); scanf("%c",&key); startwtime = MPI_Wtime(); MPI_Send(password,strlen(password)+1,MPI_CHAR,1,99,MPI_COMM_WORLD); } if(myid==1) { MPI_Recv(password,12,MPI_CHAR,0,99,MPI_COMM_WORLD,&status); }
相见恨晚的超实用网站
搞学习 知乎:www.zhihu.com 简答题:http://www.jiandati.com/ 网易公开课:https://open.163.com/ted/ 网易云课堂:https://study.163.com/ 中国大学MOOC:www.icourse163.org 网易云课堂:study.163.com 哔哩哔哩弹幕网:www.bilibili.com 我要自学网:www.51zxw
花了20分钟,给女朋友们写了一个web版群聊程序
参考博客 [1]https://www.byteslounge.com/tutorials/java-ee-html5-websocket-example
爬虫福利二 之 妹子图网MM批量下载
爬虫福利一:27报网MM批量下载    点击 看了本文,相信大家对爬虫一定会产生强烈的兴趣,激励自己去学习爬虫,在这里提前祝:大家学有所成! 目标网站:妹子图网 环境:Python3.x 相关第三方模块:requests、beautifulsoup4 Re:各位在测试时只需要将代码里的变量 path 指定为你当前系统要保存的路径,使用 python xxx.py 或IDE运行即可。
字节跳动视频编解码面经
引言 本文主要是记录一下面试字节跳动的经历。 三四月份投了字节跳动的实习(图形图像岗位),然后hr打电话过来问了一下会不会opengl,c++,shador,当时只会一点c++,其他两个都不会,也就直接被拒了。 七月初内推了字节跳动的提前批,因为内推没有具体的岗位,hr又打电话问要不要考虑一下图形图像岗,我说实习投过这个岗位不合适,不会opengl和shador,然后hr就说秋招更看重基础。我当时
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 顺便拉下票,我在参加csdn博客之星竞选,欢迎投票支持,每个QQ或者微信每天都可以投5票,扫二维码即可,http://m234140.nofollow.ax.
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
Python 基础(一):入门必备知识
目录1 标识符2 关键字3 引号4 编码5 输入输出6 缩进7 多行8 注释9 数据类型10 运算符10.1 常用运算符10.2 运算符优先级 1 标识符 标识符是编程时使用的名字,用于给变量、函数、语句块等命名,Python 中标识符由字母、数字、下划线组成,不能以数字开头,区分大小写。 以下划线开头的标识符有特殊含义,单下划线开头的标识符,如:_xxx ,表示不能直接访问的类属性,需通过类提供
这30个CSS选择器,你必须熟记(上)
关注前端达人,与你共同进步CSS的魅力就是让我们前端工程师像设计师一样进行网页的设计,我们能轻而易举的改变颜色、布局、制作出漂亮的影音效果等等,我们只需要改几行代码,不需...
国产开源API网关项目进入Apache孵化器:APISIX
点击蓝色“程序猿DD”关注我回复“资源”获取独家整理的学习资料!近日,又有一个开源项目加入了这个Java开源界大名鼎鼎的Apache基金会,开始进行孵化器。项目名称:AP...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 欢迎 改进 留言。 演示地点跳到演示地点 html代码如下`&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;music&lt;/title&gt; &lt;meta charset="utf-8"&gt
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。 1. for - else 什么?不是 if 和 else 才
数据库优化 - SQL优化
前面一篇文章从实例的角度进行数据库优化,通过配置一些参数让数据库性能达到最优。但是一些“不好”的SQL也会导致数据库查询变慢,影响业务流程。本文从SQL角度进行数据库优化,提升SQL运行效率。 判断问题SQL 判断SQL是否有问题时可以通过两个表象进行判断: 系统级别表象 CPU消耗严重 IO等待严重 页面响应时间过长
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 c/c++ 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7
通俗易懂地给女朋友讲:线程池的内部原理
餐厅的约会 餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”我楞了一下,心里想女朋友今天是怎么了,怎么突然问出这么专业的问题,但做为一个专业人士在女朋友面前也不能露怯啊,想了一下便说:“我先给你讲讲我前同事老王的故事吧!” 大龄程序员老王 老王是一个已经北漂十多年的程序员,岁数大了,加班加不动了,升迁也无望,于是拿着手里
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
编写Spring MVC控制器的14个技巧
本期目录 1.使用@Controller构造型 2.实现控制器接口 3.扩展AbstractController类 4.为处理程序方法指定URL映射 5.为处理程序方法指定HTTP请求方法 6.将请求参数映射到处理程序方法 7.返回模型和视图 8.将对象放入模型 9.处理程序方法中的重定向 10.处理表格提交和表格验证 11.处理文件上传 12.在控制器中自动装配业务类 ...
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹
面试官:你连RESTful都不知道我怎么敢要你?
面试官:了解RESTful吗? 我:听说过。 面试官:那什么是RESTful? 我:就是用起来很规范,挺好的 面试官:是RESTful挺好的,还是自我感觉挺好的 我:都挺好的。 面试官:… 把门关上。 我:… 要干嘛?先关上再说。 面试官:我说出去把门关上。 我:what ?,夺门而去 文章目录01 前言02 RESTful的来源03 RESTful6大原则1. C-S架构2. 无状态3.统一的接
求小姐姐抠图竟遭白眼?痛定思痛,我决定用 Python 自力更生!
点击蓝色“Python空间”关注我丫加个“星标”,每天一起快乐的学习大家好,我是 Rocky0429,一个刚恰完午饭,正在用刷网页浪费生命的蒟蒻...一堆堆无聊八卦信息的网页内容慢慢使我的双眼模糊,一个哈欠打出了三斤老泪,就在此时我看到了一张图片:是谁!是谁把我女朋友的照片放出来的!awsl!太好看了叭...等等,那个背景上的一堆鬼画符是什么鬼?!真是看不下去!叔叔婶婶能忍,隔壁老王的三姨妈的四表...
为啥国人偏爱Mybatis,而老外喜欢Hibernate/JPA呢?
关于SQL和ORM的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行了一番讨论,感触还是有一些,于是就有了今天这篇文。 声明:本文不会下关于Mybatis和JPA两个持久层框架哪个更好这样的结论。只是摆事实,讲道理,所以,请各位看官勿喷。 一、事件起因 关于Mybatis和JPA孰优孰劣的问题,争论已经很多年了。一直也没有结论,毕竟每个人的喜好和习惯是大不相同的。我也看
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
致 Python 初学者
欢迎来到“Python进阶”专栏!来到这里的每一位同学,应该大致上学习了很多 Python 的基础知识,正在努力成长的过程中。在此期间,一定遇到了很多的困惑,对未来的学习方向感到迷茫。我非常理解你们所面临的处境。我从2007年开始接触 python 这门编程语言,从2009年开始单一使用 python 应对所有的开发工作,直至今天。回顾自己的学习过程,也曾经遇到过无数的困难,也曾经迷茫过、困惑过。开办这个专栏,正是为了帮助像我当年一样困惑的 Python 初学者走出困境、快速成长。希望我的经验能真正帮到你
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
相关热词 c#选择结构应用基本算法 c# 收到udp包后回包 c#oracle 头文件 c# 序列化对象 自定义 c# tcp 心跳 c# ice连接服务端 c# md5 解密 c# 文字导航控件 c#注册dll文件 c#安装.net
立即提问