Cmake giving error “compute_20”, even though the architecture is explicitly unstated in the make file

I have the same error as the person in this question, however, when I tried the solution (Just delete the target for compute_20), I’m still getting the error, even after cleaning the project.

To be specific: I’m trying to install caffe by following these instructions, step by step. Even more specifically, here is my steps.

I run sudo cmake .., and I get the following information:

CMake Warning (dev) at cmake/Misc.cmake:32 (set):   implicitly converting 'BOOLEAN' to 'STRING' type. Call Stack (most recent call first):   CMakeLists.txt:24 (include) This warning is for project developers.  Use -Wno-dev to suppress it.  -- Found Boost: /usr/include (found suitable version "1.65.1", minimum required is "1.46") found components:  system thread filesystem chrono date_time atomic  -- Found gflags  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/ -- Found glog    (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/ -- Found PROTOBUF Compiler: /usr/bin/protoc -- HDF5: Using hdf5 compiler wrapper to determine C configuration -- HDF5: Using hdf5 compiler wrapper to determine CXX configuration -- Found lmdb    (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/ -- Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/ -- Found Snappy  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/ -- CUDA detected: 10.1 -- Automatic GPU detection failed. Building for all known architectures. -- Added CUDA NVCC flags for: sm_20 sm_21 sm_30 sm_35 sm_50 -- OpenCV found (/usr/share/OpenCV) -- Found OpenBLAS libraries: /usr/lib/x86_64-linux-gnu/ -- Found OpenBLAS include: /usr/include/x86_64-linux-gnu -- NumPy ver. 1.11.0 found (include: /usr/local/lib/python2.7/dist-packages/numpy/core/include) -- Found Boost: /usr/include (found suitable version "1.65.1", minimum required is "1.46") found components:  python  -- Found NCCL (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/ -- Detected Doxygen OUTPUT_DIRECTORY: ./doxygen/ --  -- ******************* Caffe Configuration Summary ******************* -- General: --   Version           :   0.15.14 --   Git               :   v0.15.14-16-g4b8d54d8-dirty --   System            :   Linux --   C++ compiler      :   /usr/bin/c++ --   Release CXX flags :   -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized --   Debug CXX flags   :   -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized --   Build type        :   Release --  --   BUILD_SHARED_LIBS :   ON --   BUILD_python      :   ON --   BUILD_matlab      :   OFF --   BUILD_docs        :   ON --   CPU_ONLY          :   OFF --   USE_OPENCV        :   ON --   USE_LEVELDB       :   ON --   USE_LMDB          :   ON --   ALLOW_LMDB_NOLOCK :   OFF --  -- Dependencies: --   BLAS              :   Yes (open) --   Boost             :   Yes (ver. 1.65) --   glog              :   Yes --   gflags            :   Yes --   protobuf          :   Yes (ver. 3.0.0) --   lmdb              :   Yes (ver. 0.9.21) --   LevelDB           :   Yes (ver. 1.20) --   Snappy            :   Yes (ver. ..) --   OpenCV            :   Yes (ver. 3.2.0) --   CUDA              :   Yes (ver. 10.1) --  -- NVIDIA CUDA: --   Target GPU(s)     :   Auto --   GPU arch(s)       :   sm_20 sm_21 sm_30 sm_35 sm_50 --   cuDNN             :   Not found --   NCCL              :   Yes --  -- Python: --   Interpreter       :   /usr/bin/python2.7 (ver. 2.7.15) --   Libraries         :   /usr/lib/x86_64-linux-gnu/ (ver 2.7.15+) --   NumPy             :   /usr/local/lib/python2.7/dist-packages/numpy/core/include (ver 1.11.0) --  -- Documentaion: --   Doxygen           :   /usr/bin/doxygen (1.8.13) --   config_file       :   /home/par/caffe/.Doxyfile --  -- Install: --   Install path      :   /home/par/caffe/build/install --  -- Configuring done -- Generating done -- Build files have been written to: /home/par/caffe/build 

NOTE: The configuration says specifically that it’s compiling to sm_20 compute version, which is not what I want to do. I searched all files that I have for this “sm_20” token, and the results are all in /caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/, meaning that they are not contained within a make file.

I searched the same files for a compute_20 mention, and once again, the only mentions are in the directory above. I remove them, keeping syntax in check, and then run make -j"$ (nproc)" to which I get the following error:

[  6%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/ nvcc fatal   : Unsupported gpu architecture 'compute_20' CMake Error at (message):   Error generating   /home/par/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/util/./ 

What is the cause of this, if compute_20 nor sm_20 are mentioned in any makefile?

Is there a balancing issue giving a Wizard a wand capable of casting Illusory Script once per day?

Wizard expressed a desire for a magical wand that could cast the ritual spell Illusory Script without burning a spell slot/ritual slot. I though about giving a wand that can cast the spell once per day. Seems relatively fair for a magical item but not sure if there are any balance implications.

Given a sequence of integers $A_1,A_2,A_3 ……A_n$ , find number triples giving equal xor?

For giving sequence $ A_1,A_2,A_3 ……A_n$ , find number of triples $ i,j,k$ such that $ 1<=i<j<=k<=N$ and $ A_i + A_{i+1} + … A_{j-1} = A_{j} + A_{j+1} ….. A_{k}$ .Where $ +$ is bitwise xor operation .

I tried to solve it using dynamic programming somewhat similar to , but it’s time complexity if $ O(n*m)$ , where m is maximum element in the array .Can we do better than $ O(n*n)$ or $ O(n*m)$ ?

SharePoint Web application giving 404 not found error

I have 2 web applications (Main site and My site) and both were running perfectly on port 80. Since debugging was not working even after attaching to the worker process, I tried to reset Visual Studio settings using command line tool. After that my web applications were not loading. Even if I try to access from IIS, it’s showing 404 Not found error. I don’t know whether it’s because of Visual studio settings reset or not. After IIS RESET / Application Pool reset also still I am getting the same error.

I have 1 wfe and 1 ap server. I tried to create new web apllication, that also only accesible from AP server only, not from WFE server.

Can anyone please help me.

If Statement Giving Wrong Output Issue Calculated Column

I have this simple if statement where there are two columns. Column 1 = Score Column 2 = Test

This is the If Statement Code:


If the score is greater than 70 it should give an A in the Test Column. If it’s less than 70 it’s F.

The picture below is the issue. Am I doing something wrong here?

enter image description here

GRUB is giving an error while loading Windows 10

I’m getting an error while loading Windows 10 from GRUB menu. Ubuntu loads perfectly fine. And I can load Windows from boot menu tho, but that isn’t always a feasible option. I want my grub menu to work for both OS. I did a fresh installation of both OS on my lenovo G50-45 laptop.

Points to consider:
• Installed Windows 10 on 120 SSD.
• Installed Ubuntu 19.04 on 500GB HDD.
• Both drives are GPT partitioned and boots in UEFI.
• I disabled secureboot in BIOS, and fastboot, hibernation in Windows 10.
• I tried updating grub using “sudo update-grub”, where it detects the windows boot manager in the drive (/dev/sdb2) and I think it updates too, but it isn’t helping.

Here is how my disks are partitioned:

sda1 | 350MB | /boot/efi
sda2 | 30GB | /
sda3 | 8GB | [SWAP]
sda4 | 50GB | /home

sdb1 | 529MB | Microsoft Windows Recovery Environment
sdb2 | 100MB | EFI system
sdb3 | 16MB | Microsoft Reserved
sdb4 | 111GB | System files.

This is how my grub menu looks like

Advanced Options for Ubuntu
Windows Boot Manager (on /dev/sdb2)
System Setup

After selecting “Windows Boot Manager (on /dev/sdb2)”, instead of loading Windows 10, this is the error I get

error: no such device : 3C3C B62B.
error: disk ‘hd1,gp2’ not found.
Press any key to continue…

After pressing any key, it brings me back to the grub menu

While on grub menu,and after pressing ‘e’ for editing windows boot entry, this is what I get

setparams 'Windows Boot Manager (on /dev/sdb2)'           insmod part_gpt         insmod fat         set root = 'hd1,gpt2'         if [x$  feature_platform_search_hint=xy]; then             search --no-floppy --fs-uuid --set-root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahcil,gpt2 3C3C-B62B         else             search --no-floppy --fs-uuid --set-root 3C3C-B62B         fi         chainloader /efi/Microsoft/Boot/bootmgfw.efi 

One thing I have observed is that, after changing boot priority to Windows drive, and again back to Ubuntu drive, the grub menu loads Windows successfully, but only once. The story repeats here after.

Can someone please help me solve this problem?

ClientContext giving 403 Forbidden error

I am hosting my site in Azure

Azure and Office 365 have same account detail. But when I am using the following code it’s giving 403 error.

Also while accessing Azure site I already logged in Office 365 then also not able to take ClientContext. As I am aware i’ts SSO by Azure & Office 365.

 try  {      var siteUrl = "https://Office365Site";      using (var clientContext = new ClientContext(siteUrl))      {          clientContext.Load(clientContext.Web, web => web.Title);          clientContext.ExecuteQuery();          Response.Write(clientContext.Web.Title);       }  }  catch (Exception ex)  {      Response.Write(ex.Message);  } 

Please help in this issue.

Giving one of two options

I am really new to all of this, but I’m trying to edit a column with the following:

=OR(LEFT([Ticket Number],6) ="TASK00",LEN([Ticket Number])=0) 

where the user is required to enter their ticket number as “TASK00XXXXX” where X is the number of the ticket. I would like to adjust this to limit them to both TASK00 and RITM00 but I’m not having much luck. Any help is much appreciated!

SQL JOIN giving doubled values

I am trying to display a total quantity of products, their weight and price. The results come from 4 different tables.

When I do this without join then I get proper values but when I use Join then I get double values on all outputs.

Without join I can’t achieve this as these results need to be all in one table.

I tried not using Join and just including those tables in ‘FROM’ but that thrown me errors about issues converting to numeric. I also tried Union but didn’t work.

When using no join and not trying to display all the values, I get the desired output but with missing columns that I missed out on purpose to test this.

SELECT PriceListTest.Description, COUNT(ItemCode) AS Quantity,    SUM(Weight) AS 'Weight', Item.Pieces, PriceListTest.Price,     CAST(SUM( PriceListTest.Price * Weight) as    DECIMAL(10,2)) as 'Unit Price', CAST(SUM(PriceListTest.Price * Weight) as    DECIMAL(10,2))   AS 'Nett Amount'   FROM StockItems    INNER JOIN PriceListTest ON   StockItems.ItemCode = PriceListTest.Description   INNER JOIN Item ON StockItems.ItemCode = Item.ShortCode    WHERE Barcode IN (SELECT DISTINCT Barcode FROM StockOuttbl    WHERE ContainedID = 'isr5063' AND Status ='' GROUP BY Barcode) AND    PriceListTest.CustomerID = (SELECT DISTINCT CustomerID From Customerstbl    WHERE CustomerID ='1')   GROUP BY PriceListTest.Description, Item.Pieces, PriceListTest.Price; 

Status in this case is empty, so that’s not the issue

I getting these values:

Description Quantity    Weight  Pieces  Price   Unit Price  Nett Amount Product1        52        20242 0       1.23        24897.66    24897.66   Product2        50        17206 0       1.23        21163.38    21163.38 

This is the output I am looking:

Description Quantity    Weight  Pieces  Price   Unit Price  Nett Amount Product1        26          10121   0   1.23    12448.83‬   12448.83                                                                ‬ Product2        25          8603    0   1.23    10581.69    10581.69  

When I don’t use the PriceListTest in Join then I don’t get the doubles, but then it’s not exactly what I am looking for.

I get:

Description Quantity    Weight  Pieces Product1        26      10121   0          Product2        25       8603   0    

I’d appreciate any help with this. Thanks in advance!