Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

vibeit

Member
  • Content Count

    115
  • Joined

  • Last visited

Awards


This user doesn't have any awards

About vibeit

  • Title
    Member

Recent Profile Visitors

763 profile views
  1. So I'm trying to learn parallel programming with CUDA. So I'm wondering if there's a way to automatically get the number of blocks and threads without looking up the card's specifications online, then using those values in the <<<block, thread>>> line of code. I want to do this automatically so that regardless of what card model I run the code on, it will utilize the whole card. Right now I'm using a GTX 1050 with 640 Cuda cores according to the specs sheet from the nvidia website. If that's the total cores how do I get the number of blocks? Right now I put 1. Below is the code I'm trying to run. #include <cuda.h> #include "DataManager.h" #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <cmath> #include <iostream> #include <stdio.h> #include <stdlib.h> /* srand, rand */ #include <time.h> #include <array> #include <random> #define THREADS 640 DataManager dm; __global__ void Operation(int n, float *x, float *io) { int index = threadIdx.x; int stride = blockDim.x; for (int i = index; i < n; i+= stride) { io[i] = x[i] * io[i]; printf("%d %f\n", i , io[i]); } } int main(int argc, char ** argv){ int N = THREADS; float *x, float *y; cudaMallocManaged(&x, N * sizeof(float)); cudaMallocManaged(&y, N * sizeof(float)); for (int i = 0; i < N; i++) { x[i] = (float)(rand() % 100); y[i] = (float)(rand() % 100); } Operation <<<1, THREADS >>> (N, x, y); cudaDeviceSynchronize(); cudaFree(x); cudaFree(y); return 0; }
  2. I think Youtube uses the GPU for decoding video so maybe your Graphics card is not enough especially if you watch in very high quality. Try disabling GPU acceleration in your browser or lower the quality of the video and see if that lightens up the GPU load.
  3. How do I properly host my website in apache2. The files are stored in an external hard drive attached to the router, the server is running in raspberry pi with Ubuntu Mate 16.04. I keep getting this error "The requested URL / was not found on this server." I attached a diagram of my hardware set up. apache2.conf config: <Directory smb://tp-share/sda1/Server/> Options FollowSymLinks AllowOverride All Require all granted </Directory> 000-default.conf config: Documentroot smb://tp-share/sda1/Server ServerName my.server.home ServerAlias server.home DirectoryIndex smb://tp-share/sda1/Server
  4. Now that you mention servers yeah I doubt it's rated to work 24/7. It's a Seagate Backup Plus Mechanical drive. My best bet is to buy a server grade drive and attach it using a SATA to USB cable.
  5. I attached my USB hard drive to a router (TP-Link Archer C1200) that has a USB port and I realized that the hard drive doesn't spin down and I can only assume it's been spinning constantly the whole night even when nothing is being written or read from the drive. Will the drive wear out or should I replace it with flash-based storage?
  6. It's displayed in one of the BIOS tab pages. I already tried to dual boot with windows and it turns out I can't license my Windows because the OS license is for a Windows Home Single Language version and I tried downloading a copy from windows website, turns out they don't have it posted anymore. I tried the Linux way to circumvent the site to show other ISO versions too and no luck. I'm stuck with an unlicensed windows. I feel like I should demand a refund.
  7. So my Lenovo Ideapad 310 won't boot to windows, I tried resetting using the OS's own Reset PC feature but the process fails all the time with no explanation why. I suspect this all started when I switch the laptop off after it hanged. The only reason I'm able to type this is from a live session of Ubuntu Linux. The Windows OS came with the Laptop when I bought it and I'm thinking of just erasing the whole hard drive and installing linux instead but I don't want to lose the OS since it's a licensed OS and it would be a waste to just erase it and I might have to come back to install it some time in the future. I did however, manage to snap a picture of the pre-installed OS license from the BIOS, along with UUID and Key ID. The license Key is only 10 characters long and comparing it to a googled Windows 10 CD key, it's too short so I'm not sure if this is the correct key. Can I just download a copy of windows 10 and use this shorter key instead or do I need the original CD the manufacturer used so the License key and disc will match? Also, if I replace the OS completely, will this ruin my laptop's ability to boot? I don't know much about UEFI but the laptop has a setting in the bios to switch UEFI to legacy. I've heard that UEFI prevents installation of other OSes other than windows. So I'm not sure how those things are going to affect each other. So my options are: Erase entire hard drive and replace windows with linux at the risk of losing the licensed windows. Dual boot ubuntu and the unbootable windows 10 at the risk of having boot problems. Erase the preinstalled windows and install a fresh copy using the CD I used on my desktop build. But this means I'll be using the same license as the desktop and I'm sure there's going to be a problem somewhere down the line and potential boot problems, I think. Note: I'm sure the hard drive still works since I was able to copy my data to an external usb hard drive via Ubuntu live session. And which OS is better for web development as that is the type of work I do with my laptop?
  8. I already have apache running. It seems like php files saved through this IDE are just saved as text even if the extension is php. First indicator I see is that syntax highlighting doesn't work. Typed source codes are all in black. CSS files are fine though.
  9. When I save php files in Web Expression 4, the software seems to save the file as text files despite having a php extension and when I preview the page on the browser it is showing the source code in plain text instead of a rendered web page. Does anyone know how to fix this?
  10. How do I configure the httpd.conf file to this setup? I will not use this as an actual server on the internet. I just need something for developing websites.
  11. Oh okay, thanks everyone. Time to shorten my resume.
  12. So I'm applying to be a computer technician and I'm having thoughts if I should include other skills like programming in HTML, CSS, java, C#, etc. I learned these in school but only one semester. The other languages like C++, Python, PHP are all self-taught. Now the catch is I'm not that skilled at these, I'm more of a jack of all trades and master of none when it comes to these languages, probably from following tutorials on the web. I was sort of jumping from lesson to lesson and language to language. But it seems like a waste not to add them to the resume even if they're not required for troubleshooting a computer (at least from what I can assume right now). I'm interested to work in web development but I've yet to earn the certificate for that.
  13. Hey Minesweeper! But to my horror my Windows installation doesn't come with Minesweeper. What a ripoff, Microsoft!
  14. intel i5 6500 3.2 GHz Palit NVidia GTX 1050 2GB 16 GB DDR 4 2100 RAM 2 x 1 TB HDD * No overclocked components. Preferably RPGs, city builders, or simulators.
  15. I forgot to mention that I installed Windows Server 2008 r2 on a laptop and tried to connect my Windows 10 Home edition desktop and that's where I discovered the grayed out option. I tried installing Windows 7 pro yesterday but the installer for windows is asking for some drivers. I tried inserting the mobo disc and my own Windows 7 Starter edition CD but it either won't work. The Windows 7 Pro a cd image in a USB flashdrive.
×