Hi,

I just buy new notebook with NVidia card and installed an Ubuntu on him(primarily I tried to install Mint on it, but it crashes all the time - black screen and nothing to do ), but there was too many problems with drivers, when I pull through the problems with video card driver, I started to run my program, but it run very slowly(about 20 times slower than on earlier stuff) I made even tests on this site and on Ubuntu I have score P443(it last very long to finish this test), on Windows 10(I had dualboot) P6500. So I decided to switch to Windows(for example on my previous notebook it gave P1040 on Windows andthe same score on Mint). I installed VSCode and Julia, run my program and â€¦ the same problem occured.

In this program I left

`print()`

statements to watch the actual steps so I know that it didnâ€™t crash(as I write this topic it didnâ€™t even achieve 10% of actual calculation, but it â€śworksâ€ť).The most important problem is with this part of code:

```
module BiotSavartCalculation
using QuadGK: quadgk
export biotSavartCalculation
function biotSavartCalculation(x,y,z,Segment,I,SegmentsOnElement)
E=length(Segment)
T=Array{Float32}(undef,E*SegmentsOnElement,3)
variant=Array{Float32}(undef,E)
for j=1:E
if ((Segment[j][2][1]==Segment[j][1][1])&&(Segment[j][2][2]==Segment[j][1][2]))
variant[j]=1.0f0
elseif Segment[j][2][3]==Segment[j][1][3]
variant[j]=2.0f0
else
variant[j]=3.0f0
end
start=(j-1)*SegmentsOnElement+1
over=j*SegmentsOnElement
for i=start:over
k=(i-1)%SegmentsOnElement
T[i,1]=Segment[j][1][1]+k*(Segment[j][2][1]-Segment[j][1][1])/(SegmentsOnElement-1)
T[i,2]=Segment[j][1][2]+k*(Segment[j][2][2]-Segment[j][1][2])/(SegmentsOnElement-1)
T[i,3]=Segment[j][1][3]+k*(Segment[j][2][3]-Segment[j][1][3])/(SegmentsOnElement-1)
end
end
B=Array{Float32}(undef,length(x),length(y),length(z))
m=1;
for z in z
for y in y
for x in x
Bx=0.0
By=0.0
Bz=0.0
for j=1:E
start=(j-1)*SegmentsOnElement+1
over=j*SegmentsOnElement-1
if variant[j]==1.0
for i=start:over
L=T[i+1,3]-T[i,3]
Î´x=x-T[i,1]
Î´y=y-T[i,2]
q=Î´x*Î´x+Î´y*Î´y
try
integral, err = quadgk(u -> ((u-z)^2+q)^(-3/2), 0, L, rtol=1e-8)
catch
end
Bx+=I[j]*integral*Î´y
By+=I[j]*integral*Î´x
end
elseif variant[j]==2.0
for i=start:over
Î´x=x-T[i,1]
Î´y=y-T[i,2]
Î´z=z-T[i,3]
Sx=T[i+1,1]-T[i,1]
Sy=T[i+1,2]-T[i,2]
L=sqrt(Sx*Sx+Sy*Sy)
Î±=Sx/L
Î˛=Sy/L
p=Î±*Î´x+Î˛*Î´y
q=Î´x*Î´x+Î´y*Î´y+Î´z*Î´z-p*p
integral=0.0
try
integral, err = quadgk(u -> ((u-p)^2+q)^(-3/2), 0, L, rtol=1e-8)
catch
end
Bx+=I[j]*integral*Î˛*Î´z
By+=I[j]*integral*Î±*Î´z
Bz+=I[j]*integral*(Î±*Î´y-Î˛*Î´x)
end
else
for i=start:over
Î´x=x-T[i,1]
Î´y=y-T[i,2]
Sx=T[i+1,1]-T[i,1]
Sy=T[i+1,2]-T[i,2]
L=sqrt(Sx*Sx+Sy*Sy)
mi=(T[i+1,3]-T[i,3])/Sy
if mi==Inf
mi=(T[i+1,3]-T[i,3])/(Sy+0.01)
end
Î±=Sx/L
Î˛=Sy/L
a=1+mi*mi
Î´z=z+mi*T[i,2]-T[i,3]
p=(Î±*Î´x+Î˛*Î´y+mi*Î´z)/a
q=Î´x*Î´x+Î´y*Î´y+Î´z*Î´z-p*p*a
integral=0.0
try
integral, err = quadgk(u -> (a*(u-p)^2+q)^(-3/2), 0, L, rtol=1e-8)
catch
end
Bx+=I[j]*integral*(Î˛*Î´z-mi*Î´y)
By+=I[j]*integral*(Î±*Î´z-mi*Î´x)
Bz+=I[j]*integral*(Î±*Î´y-Î˛*Î´x)
end
end
end
B[m]=sqrt(abs(Bx)*abs(Bx)+abs(By)*abs(By)+abs(Bz)*abs(Bz))/(4*pi)
m+=1
end
println(y)
end
end
return B
end
end
```

On previous(theoretically weaker) notebook it taked about 20 seconds.

And there is also a problem that I canâ€™t

`(v1.0) pkg> dev ~/.julia/dev/PackageName`

to add my local package, but I must do it through github(made a package on dev folder, send to repository and clone it:

`(v1.0) pkg> dev https://github.com/username/PackageName.git`

which is little annoying.